az storage blob

Manage object storage for unstructured data (blobs).

Please specify one of the following authentication parameters for your commands: --auth-mode, --account-key, --connection-string, --sas-token. You also can use corresponding environment variables to store your authentication credentials, e.g. AZURE_STORAGE_KEY, AZURE_STORAGE_CONNECTION_STRING and AZURE_STORAGE_SAS_TOKEN.

Commands

az storage blob access

Manage the access control properties of a blob when Hierarchical Namespace is enabled.

az storage blob access set

Set the access control properties of a blob.

az storage blob access show

Show the access control properties of a blob.

az storage blob access update

Update the access control properties of a blob.

az storage blob directory

Manage blob directories in storage account container.

az storage blob directory access

Manage the access control properties of a directory when Hierarchical Namespace is enabled.

az storage blob directory access set

Set the access control properties of a directory.

az storage blob directory access show

Show the access control properties of a directory.

az storage blob directory access update

Update the access control properties of a directory.

az storage blob directory create

Create a storage blob directory in a storage container.

az storage blob directory delete

Delete a storage blob directory in a storage container.

az storage blob directory download

Download blobs to a local file path.

az storage blob directory exists

Check for the existence of a blob directory in a storage container.

az storage blob directory list

List blobs and blob subdirectories in a storage directory.

az storage blob directory metadata

Manage directory metadata.

az storage blob directory metadata show

Show all user-defined metadata for the specified blob directory.

az storage blob directory metadata update

Set user-defined metadata for the specified blob directory as one or more name-value pairs.

az storage blob directory move

Move a storage directory to another storage blob directory in a storage container.

az storage blob directory show

Show a storage blob directory properties in a storage container.

az storage blob directory upload

Upload blobs or subdirectories to a storage blob directory.

az storage blob move

Move a blob in a storage container.

az storage blob service-properties

Manage storage blob service properties.

az storage blob service-properties show

Gets the properties of a storage account's Blob service, including Azure Storage Analytics.

az storage blob service-properties update

Update storage blob service properties.

az storage blob move

Move a blob in a storage container.

az storage blob move --container-name
                     --destination-blob
                     --source-blob
                     [--account-key]
                     [--account-name]
                     [--auth-mode {key, login}]
                     [--connection-string]
                     [--lease-id]
                     [--sas-token]
                     [--source-if-match]
                     [--source-if-modified-since]
                     [--source-if-none-match]
                     [--source-if-unmodified-since]
                     [--source-lease-id]
                     [--timeout]

Examples

Move a blob in a storage container.

az storage blob move -c MyContainer -d DestinationBlobPath -s SourceBlobPath --account-name MyStorageAccount

Required Parameters

--container-name -c

The container name.

--destination-blob -d

The destination blob name. It should be an absolute path under the container. e.g.'topdir1/dirbar'.

--source-blob -s

The source blob name. It should be an absolute path under the container. e.g.'topdir1/dirsubfoo'.

Optional Parameters

--account-key

Storage account key. Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_KEY.

--account-name

Storage account name. Related environment variable: AZURE_STORAGE_ACCOUNT. Must be used in conjunction with either storage account key or a SAS token. If neither are present, the command will try to query the storage account key using the authenticated Azure account. If a large number of storage commands are executed the API quota may be hit.

--auth-mode

The mode in which to run the command. "login" mode will directly use your login credentials for the authentication. The legacy "key" mode will attempt to query for an account key if no authentication parameters for the account are provided. Environment variable: AZURE_STORAGE_AUTH_MODE.

accepted values: key, login
--connection-string

Storage account connection string. Environment variable: AZURE_STORAGE_CONNECTION_STRING.

--lease-id

Optional. A lease ID for the new_path. The new_path must have an active lease and the lease ID must match.

--sas-token

A Shared Access Signature (SAS). Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_SAS_TOKEN.

--source-if-match

Optional. An ETag value. Specify this header to perform the rename operation only if the source's ETag matches the value specified.

--source-if-modified-since

Optional. A date and time value. Specify this header to perform the rename operation only if the source has been modified since the specified date and time.

--source-if-none-match

Optional. An ETag value or the special wildcard ("*") value. Specify this header to perform the rename operation only if the source's ETag does not match the value specified.

--source-if-unmodified-since

Optional. A date and time value. Specify this header to perform the rename operation only if the source has not been modified since the specified date and time.

--source-lease-id

Optional. A lease ID for the source_path. The source_path must have an active lease and the lease ID must match.

--timeout

Request timeout in seconds. Applies to each call to the service.