azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az storage azcopy blob changes underscores to dashes.

Open rafaelrruiz opened this issue 10 months ago • 1 comments

Describe the bug

az storage azcopy blob seems to be changing underscores in our destination name to dashes. This causes issues for some files that must adhere to certain naming schemes (such as CLI extensions).

Related command

We were using this: az storage azcopy blob upload --account-name $DESTINATION_STORAGE_ACCOUNT_NAME -c "cli-extension" -s "./$DESTINATION_FILE_NAME" -d "$DESTINATION_FILE_NAME" --output table --debug

But had to switch to this because the underscores in DESTINATION_FILE_NAME were being changed: az storage blob upload --account-name $DESTINATION_STORAGE_ACCOUNT_NAME -c "cli-extension" --output table --name "$DESTINATION_FILE_NAME" --file "./$DESTINATION_FILE_NAME" --debug

Errors

No error, file name is changed.

Issue script & Debug output

See other entries

Expected behavior

No change to the name of the file we pass in.

Environment Summary

This happened during EV2 pipeline using this image:
"imageName": "adm-ubuntu-2004-l", "imageVersion": "v5"

Additional context

No response

rafaelrruiz avatar May 01 '24 18:05 rafaelrruiz

Thank you for opening this issue, we will look into it.

yonzhan avatar May 01 '24 18:05 yonzhan