Describe the bug
When running the below Azure CLI command in powershell, it could not recoginize the SAS token as a whole string, even i have tried to enclose with single quota.
It works fine in command prompt (enclose url with double quote).
It also works fine if i use Invoke-WebRequest to send the request in powershell.
az storage blob download --blob-url 'https://mgtemptest1.blob.core.windows.net/container1/CMakeLists.txt?sp=racwl&st=2023-10-27T13:09:04Z&se=2023-10-27T21:09:04Z&skoid=9676ee5e-53b0-4022-84c6-24799d39bc4e&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2023-10-27T13:09:04Z&ske=2023-10-27T21:09:04Z&sks=b&skv=2022-11-02&spr=https&sv=2022-11-02&sr=c&sig=xxx'
Related command
az storage blob download --blob-url 'https://mgtemptest1.blob.core.windows.net/container1/CMakeLists.txt?sp=racwl&st=2023-10-27T13:09:04Z&se=2023-10-27T21:09:04Z&skoid=9676ee5e-53b0-4022-84c6-24799d39bc4e&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2023-10-27T13:09:04Z&ske=2023-10-27T21:09:04Z&sks=b&skv=2022-11-02&spr=https&sv=2022-11-02&sr=c&sig=xxx'
Errors
Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:824f7d07-101e-011e-14d9-08a22e000000
Time:2023-10-27T13:25:58.5315715Z
ErrorCode:NoAuthenticationInformation
'st' is not recognized as an internal or external command,
operable program or batch file.
'se' is not recognized as an internal or external command,
operable program or batch file.
'skoid' is not recognized as an internal or external command,
operable program or batch file.
'sktid' is not recognized as an internal or external command,
operable program or batch file.
'skt' is not recognized as an internal or external command,
operable program or batch file.
'ske' is not recognized as an internal or external command,
operable program or batch file.
'sks' is not recognized as an internal or external command,
operable program or batch file.
'skv' is not recognized as an internal or external command,
operable program or batch file.
'spr' is not recognized as an internal or external command,
operable program or batch file.
'sv' is not recognized as an internal or external command,
operable program or batch file.
'sr' is not recognized as an internal or external command,
operable program or batch file.
'sig' is not recognized as an internal or external command,
operable program or batch file.
Issue script & Debug output
Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:99620e57-801e-0072-0fdb-084fa8000000
Time:2023-10-27T13:43:18.6567605Z
ErrorCode:NoAuthenticationInformation
'st' is not recognized as an internal or external command,
operable program or batch file.
'se' is not recognized as an internal or external command,
operable program or batch file.
'skoid' is not recognized as an internal or external command,
operable program or batch file.
'sktid' is not recognized as an internal or external command,
operable program or batch file.
'skt' is not recognized as an internal or external command,
operable program or batch file.
'ske' is not recognized as an internal or external command,
operable program or batch file.
'sks' is not recognized as an internal or external command,
operable program or batch file.
'skv' is not recognized as an internal or external command,
operable program or batch file.
'spr' is not recognized as an internal or external command,
operable program or batch file.
'sv' is not recognized as an internal or external command,
operable program or batch file.
'sr' is not recognized as an internal or external command,
operable program or batch file.
'sig' is not recognized as an internal or external command,
operable program or batch file.
Expected behavior
download the file successfully
Environment Summary
PS C:\Work\SourceCode\azure-storage-fuse-master> az --version
azure-cli 2.53.1
core 2.53.1
telemetry 1.1.0
Dependencies:
msal 1.24.0b2
azure-mgmt-resource 23.1.0b2
Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\shidin.azure\cliextensions'
Python (Windows) 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)]
Legal docs and information: aka.ms/AzureCliLegal
Additional context
No response
Describe the bug
When running the below Azure CLI command in powershell, it could not recoginize the SAS token as a whole string, even i have tried to enclose with single quota.
It works fine in command prompt (enclose url with double quote).
It also works fine if i use Invoke-WebRequest to send the request in powershell.
az storage blob download --blob-url 'https://mgtemptest1.blob.core.windows.net/container1/CMakeLists.txt?sp=racwl&st=2023-10-27T13:09:04Z&se=2023-10-27T21:09:04Z&skoid=9676ee5e-53b0-4022-84c6-24799d39bc4e&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2023-10-27T13:09:04Z&ske=2023-10-27T21:09:04Z&sks=b&skv=2022-11-02&spr=https&sv=2022-11-02&sr=c&sig=xxx'
Related command
az storage blob download --blob-url 'https://mgtemptest1.blob.core.windows.net/container1/CMakeLists.txt?sp=racwl&st=2023-10-27T13:09:04Z&se=2023-10-27T21:09:04Z&skoid=9676ee5e-53b0-4022-84c6-24799d39bc4e&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2023-10-27T13:09:04Z&ske=2023-10-27T21:09:04Z&sks=b&skv=2022-11-02&spr=https&sv=2022-11-02&sr=c&sig=xxx'
Errors
Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:824f7d07-101e-011e-14d9-08a22e000000
Time:2023-10-27T13:25:58.5315715Z
ErrorCode:NoAuthenticationInformation
'st' is not recognized as an internal or external command,
operable program or batch file.
'se' is not recognized as an internal or external command,
operable program or batch file.
'skoid' is not recognized as an internal or external command,
operable program or batch file.
'sktid' is not recognized as an internal or external command,
operable program or batch file.
'skt' is not recognized as an internal or external command,
operable program or batch file.
'ske' is not recognized as an internal or external command,
operable program or batch file.
'sks' is not recognized as an internal or external command,
operable program or batch file.
'skv' is not recognized as an internal or external command,
operable program or batch file.
'spr' is not recognized as an internal or external command,
operable program or batch file.
'sv' is not recognized as an internal or external command,
operable program or batch file.
'sr' is not recognized as an internal or external command,
operable program or batch file.
'sig' is not recognized as an internal or external command,
operable program or batch file.
Issue script & Debug output
Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:99620e57-801e-0072-0fdb-084fa8000000
Time:2023-10-27T13:43:18.6567605Z
ErrorCode:NoAuthenticationInformation
'st' is not recognized as an internal or external command,
operable program or batch file.
'se' is not recognized as an internal or external command,
operable program or batch file.
'skoid' is not recognized as an internal or external command,
operable program or batch file.
'sktid' is not recognized as an internal or external command,
operable program or batch file.
'skt' is not recognized as an internal or external command,
operable program or batch file.
'ske' is not recognized as an internal or external command,
operable program or batch file.
'sks' is not recognized as an internal or external command,
operable program or batch file.
'skv' is not recognized as an internal or external command,
operable program or batch file.
'spr' is not recognized as an internal or external command,
operable program or batch file.
'sv' is not recognized as an internal or external command,
operable program or batch file.
'sr' is not recognized as an internal or external command,
operable program or batch file.
'sig' is not recognized as an internal or external command,
operable program or batch file.
Expected behavior
download the file successfully
Environment Summary
PS C:\Work\SourceCode\azure-storage-fuse-master> az --version
azure-cli 2.53.1
core 2.53.1
telemetry 1.1.0
Dependencies:
msal 1.24.0b2
azure-mgmt-resource 23.1.0b2
Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\shidin.azure\cliextensions'
Python (Windows) 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)]
Legal docs and information: aka.ms/AzureCliLegal
Additional context
No response