Azure / Azure/azure-cli

az storage azcopy blob changes underscores to dashes.

Open
#28,868 1 comment 0 reactions 2 assignees Claimed by @calvinhzy View on GitHub
act-codegen-extensibility-squad Auto-Assign Azure CLI Team potential-pruning question Storage
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.