az-storage-blob:tldr:65613
az-storage-blob: Download blobs from a blob container recursively.
$ az storage blob download-batch --account-name ${storage_account_name} --account-key ${storage_account_key} -s ${container_name} -d ${path-to-remote} --pattern ${filename_regex} --destination ${path-to-destination}
try on your machine
This command is used to download multiple blobs from an Azure Storage account. Here's a breakdown of the command and its parameters:
az storage blob download-batch
: It is the command-line interface (CLI) command to perform a batch download of blobs.--account-name
: Specifies the name of the Azure Storage account from which the blobs will be downloaded.${storage_account_name}
: A placeholder that should be replaced with the actual name of the Azure Storage account.--account-key
: Specifies the access key associated with the Azure Storage account. It authenticates the command execution.${storage_account_key}
: A placeholder that should be replaced with the actual access key of the Azure Storage account.-s
: Specifies the name of the container from where the blobs will be downloaded.${container_name}
: A placeholder that should be replaced with the actual name of the container.-d
: Specifies the path to a remote folder within the container. This is the starting point for downloading the blobs.${path-to-remote}
: A placeholder that should be replaced with the actual path to the remote folder.--pattern
: Specifies a regular expression pattern that filters the blobs to be downloaded based on their filenames.${filename_regex}
: A placeholder for the regular expression pattern. Replace it with the actual pattern or remove it to download all blobs.--destination
: Specifies the local directory where the downloaded blobs will be saved.${path-to-destination}
: A placeholder for the local directory path. Replace it with the actual path where the blobs should be stored.
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.