-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamStorageaz storageaz storagecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-requestneeds-team-triageThis issue needs the team to triage.This issue needs the team to triage.
Milestone
Description
Related command
az storage file and az storage directory
Is your feature request related to a problem? Please describe.
The missing rename operation is very common and would make for a great feature that completes the rest of the commands.
Describe the solution you'd like
The az storage file and az storage directory utilities should include a rename operation.
Describe alternatives you've considered
The alternatives are to either:
- Using the REST API which provides
Rename FileandRename Directory. - Setting up Azure PowerShell which provides
Rename-AzStorageFileandRename-AzStorageDirectory.
Additional context
Renaming a directory through the REST API is much less convenient than any of the storage commands:
az rest --method put \
--headers "{ \
\"x-ms-version\": \"2024-11-04\", \
\"x-ms-file-rename-source\": \"$SOURCE_DIR\", \
\"x-ms-file-request-intent\": \"backup\" }" \
--url "$TARGET_DIR"'?restype=directory&comp=rename' \
--resource "$SHARE_URL"Gamadril and acarter24
Metadata
Metadata
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamStorageaz storageaz storagecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-requestneeds-team-triageThis issue needs the team to triage.This issue needs the team to triage.