Azure / azure-cli

Azure Command-Line Interface
MIT License
3.98k stars 2.96k forks source link

az storage azcopy blob changes underscores to dashes. #28868

Open rafaelrruiz opened 5 months ago

rafaelrruiz commented 5 months ago

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

yonzhan commented 5 months ago

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