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:
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"
Related command
az storage fileandaz storage directoryIs your feature request related to a problem? Please describe.
The missing
renameoperation 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 fileandaz storage directoryutilities should include arenameoperation.Describe alternatives you've considered
The alternatives are to either:
Rename FileandRename Directory.Rename-AzStorageFileandRename-AzStorageDirectory.Additional context
Renaming a directory through the REST API is much less convenient than any of the
storagecommands: