Skip to content

Support renaming files in directories in az storage #31578

@tsvetomir

Description

@tsvetomir

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"

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions