az-storage-blob
Manage blob storage containers and objects in Azure. tldr-pages
On several platforms
Several platforms
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 referenceDownload 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 referenceUpload 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 referenceDelete 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 referenceGenerate 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