Open ziyaddin opened 11 months ago
Thank you for opening this issue, we will look into it.
Hi @ziyaddin , May I ask if this is for local network access only? How was the blob storage created so I can try to reproduce this?
Hi @calvinhzy ,
Yes, it's for local network access only. The blob storage was created via Azurite's Docker container.
Describe the bug
Azure CLI doesn't respect custom host within SAS URI.
Example: When a download command is run, the download request is sent to
https://devstoreaccount1.blob.core.windows.net:443
while the (URI host + account) within SAS URI ishttps://127.0.0.1:10000/devstoreaccount1
.In contrast, the host is respected when passed within connection string.
Related command
Setting environment variables:
Failed command using SAS token:
Successful command using connection string:
Errors
Authentication failure. This may be caused by either invalid account key, connection string or sas token value provided for your storage account.
Issue script & Debug output
Issue script:
Debug output:
Expected behavior
The download request should be sent to
https://127.0.0.1:10000/devstoreaccount1
instead ofhttps://devstoreaccount1.blob.core.windows.net:443
.Environment Summary
azure-cli 2.53.0
core 2.53.0 telemetry 1.1.0
Dependencies: msal 1.24.0b2 azure-mgmt-resource 23.1.0b2
Python location '/usr/local/Cellar/azure-cli/2.53.0/libexec/bin/python' Extensions directory '/Users/ziyaddin/.azure/cliextensions'
Python (Darwin) 3.10.13 (main, Aug 24 2023, 22:46:18) [Clang 14.0.0 (clang-1400.0.29.202)]
Additional context
No response