Describe the bug
When attempting to download specific files from blob storage, the command fails with the error <partialfilename> was unexpected at this time.
For example the following file name is parsed successfully:
az storage blob download -n "Sitecore/10.2.0/Sitecore 10.2.0 rev. 006766 (XM) (Cloud)_cd.scwdp.zip"
While replacing the spaces with underscores:
az storage blob download -n "Sitecore/10.2.0/Sitecore_10.2.0_rev.006766_(XM)_(Cloud)_cm-fixed.scwdp.zip"
Results in:
_(Cloud)_cm-fixed.scwdp.zip was unexpected at this time.
Replacing the underscores with hyphens results in the similar message.
Replacing the underscore after rev.006766 with a space successfully attempts to download the file.
Related command
az storage blob download
Errors
was unexpected at this time
Issue script & Debug output
az storage blob download -n "Sitecore/10.2.0/Sitecore-10.2.0-rev.006766-(XM)-(Cloud)-cm-fixed.scwdp.zip" --blob-endpoint $blobEndpoint --account-key $storageKey -c $containerName -f "Sitecore.cm.scwdp.zip" -o none --debug
-(Cloud)-cm-fixed.scwdp.zip was unexpected at this time.
C:\prj\testing> "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\\..\python.exe" -IBm azure.cli storage blob download -n Sitecore/10.2.0/Sitecore-10.2.0-rev.006766-(XM)-(Cloud)-cm-fixed.scwdp.zip --blob-endpoint <redacted> --account-key redacted> -c redacted> -f Sitecore.cm.scwdp.zip -o none --debug
Expected behavior
File is successfully downloaded from blob storage.
Environment Summary
azure-cli 2.49.0 *
core 2.49.0 *
telemetry 1.0.8
Extensions:
front-door 1.0.17
ssh 1.1.3
Dependencies:
msal 1.20.0
azure-mgmt-resource 22.0.0
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users....azure\cliextensions'
Python (Windows) 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:05:00) [MSC v.1929 32 bit (Intel)]
Additional context
No response
Describe the bug
When attempting to download specific files from blob storage, the command fails with the error
<partialfilename> was unexpected at this time.For example the following file name is parsed successfully:
az storage blob download -n "Sitecore/10.2.0/Sitecore 10.2.0 rev. 006766 (XM) (Cloud)_cd.scwdp.zip"While replacing the spaces with underscores:
az storage blob download -n "Sitecore/10.2.0/Sitecore_10.2.0_rev.006766_(XM)_(Cloud)_cm-fixed.scwdp.zip"Results in:
_(Cloud)_cm-fixed.scwdp.zip was unexpected at this time.Replacing the underscores with hyphens results in the similar message.
Replacing the underscore after
rev.006766with a space successfully attempts to download the file.Related command
az storage blob download
Errors
was unexpected at this time
Issue script & Debug output
Expected behavior
File is successfully downloaded from blob storage.
Environment Summary
azure-cli 2.49.0 *
core 2.49.0 *
telemetry 1.0.8
Extensions:
front-door 1.0.17
ssh 1.1.3
Dependencies:
msal 1.20.0
azure-mgmt-resource 22.0.0
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users....azure\cliextensions'
Python (Windows) 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:05:00) [MSC v.1929 32 bit (Intel)]
Additional context
No response