CmdID

CmdID / Commands

az-storage-blob

Manage blob storage containers and objects in Azure. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Manage blob storage containers and objects in Azure. Part of azure-cli (also known as az).

Download a blob to a file path specifying a source container

az storage blob download --account-name account_name --account-key account_key --container-name container_name --name blob_name --file path/to/fileIdentify
--container-nameThe container name. Azure CLI reference
--nameThe blob name. Azure CLI reference
--filePath of file to write out to. Azure CLI reference

Download blobs from a blob container recursively

az storage blob download-batch --account-name account_name --account-key account_key --source container_name --pattern filename_regex --destination path/to/destinationIdentify
--sourceThe blob container from where the files will be downloaded. Azure CLI reference
--patternThe pattern used for globbing files or blobs in the source. Azure CLI reference
--destinationThe existing destination folder for this download operation. Azure CLI reference

Upload a local file to blob storage

az storage blob upload --account-name account_name --account-key account_key --container-name container_name --name blob_name --file path/to/fileIdentify
--container-nameThe container name. Azure CLI reference
--nameThe blob name. Azure CLI reference
--filePath of the file to upload as the blob content. Azure CLI reference

Delete a blob object

az storage blob delete --account-name account_name --account-key account_key --container-name container_name --name blob_nameIdentify
--container-nameThe container name. Azure CLI reference
--nameThe blob name. Azure CLI reference

Generate a shared access signature for a blob

az storage blob generate-sas --account-name account_name --account-key account_key --container-name container_name --name blob_name --permissions permission_set --expiry Y-m-d'T'H:M'Z' --https-onlyIdentify
--container-nameThe container name. Azure CLI reference
--nameThe blob name. Azure CLI reference