az storage blob
all
Manage blob storage containers and objects in Azure. Part of `azure-cli` (also known as `az`).
More info →Options (5)
-c, --container-namebooleanDownload a blob to a file path specifying a source container
Example:
az storage blob download --account-name {{account_name}} --account-key {{account_key}} {{[-c|--container-name]}} {{container_name}} {{[-n|--name]}} {{blob_name}} {{[-f|--file]}} {{path/to/file}}-n, --namebooleanDownload a blob to a file path specifying a source container
Example:
az storage blob download --account-name {{account_name}} --account-key {{account_key}} {{[-c|--container-name]}} {{container_name}} {{[-n|--name]}} {{blob_name}} {{[-f|--file]}} {{path/to/file}}-f, --filebooleanDownload a blob to a file path specifying a source container
Example:
az storage blob download --account-name {{account_name}} --account-key {{account_key}} {{[-c|--container-name]}} {{container_name}} {{[-n|--name]}} {{blob_name}} {{[-f|--file]}} {{path/to/file}}-s, --sourcebooleanDownload blobs from a blob container recursively
Example:
az storage blob download-batch --account-name {{account_name}} --account-key {{account_key}} {{[-s|--source]}} {{container_name}} --pattern {{filename_regex}} {{[-d|--destination]}} {{path/to/destination}}-d, --destinationbooleanDownload blobs from a blob container recursively
Example:
az storage blob download-batch --account-name {{account_name}} --account-key {{account_key}} {{[-s|--source]}} {{container_name}} --pattern {{filename_regex}} {{[-d|--destination]}} {{path/to/destination}}Examples (5)
Download a blob to a file path specifying a source container
az storage blob download --account-name account_name --account-key account_key [-c|--container-name] container_name [-n|--name] blob_name [-f|--file] path/to/fileDownload blobs from a blob container recursively
az storage blob download-batch --account-name account_name --account-key account_key [-s|--source] container_name --pattern filename_regex [-d|--destination] path/to/destinationUpload a local file to blob storage
az storage blob upload --account-name account_name --account-key account_key [-c|--container-name] container_name [-n|--name] blob_name [-f|--file] path/to/fileDelete a blob object
az storage blob delete --account-name account_name --account-key account_key [-c|--container-name] container_name [-n|--name] blob_nameGenerate a shared access signature for a blob
az storage blob generate-sas --account-name account_name --account-key account_key [-c|--container-name] container_name [-n|--name] blob_name --permissions permission_set --expiry Y-m-d'T'H:M'Z' --https-onlymade by @shridhargupta | data from tldr-pages