Forrest logo
back to the az tool

az-storage-blob:tldr:5a862

az-storage-blob: Download a blob to a file path.
$ az storage blob download --account-name ${storage_account_name} --account-key ${storage_account_key} -c ${container_name} -n ${path-to-blob} -f ${path-to-local_file}
try on your machine

The command "az storage blob download" is used to download a blob from an Azure Storage account.

Here is an explanation of the parameters used in the command:

  • --account-name ${storage_account_name}: Specifies the name of the Azure Storage account from which to download the blob. ${storage_account_name} is a placeholder for the actual name of the storage account.

  • --account-key ${storage_account_key}: Specifies the access key of the Azure Storage account. ${storage_account_key} is a placeholder for the actual account key.

  • -c ${container_name}: Specifies the name of the container within the Azure Storage account where the blob is located. ${container_name} is a placeholder for the actual name of the container.

  • -n ${path-to-blob}: Specifies the path to the blob within the container. ${path-to-blob} is a placeholder for the actual path to the blob.

  • -f ${path-to-local_file}: Specifies the local file path where the downloaded blob will be saved. ${path-to-local_file} is a placeholder for the actual local file path.

Using this command, you can download a blob from an Azure Storage account by providing the necessary account credentials and specifying the container, blob path, and destination local file path.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the az tool