az-storage-blob:tldr:e3fe9
az-storage-blob: Upload a local file to blob storage.
$ az storage blob upload --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
This command is used to upload a file to an Azure storage blob. Here's an explanation of each parameter:
az storage blob upload
is the command to upload a file to Azure storage blob.--account-name ${storage_account_name}
specifies the name of the Azure storage account to which the blob will be uploaded.${storage_account_name}
is a placeholder that should be replaced with the actual name of the storage account.--account-key ${storage_account_key}
specifies the access key for the Azure storage account.${storage_account_key}
is a placeholder that should be replaced with the actual access key.-c ${container_name}
specifies the name of the container within the storage account where the blob will be uploaded.${container_name}
is a placeholder that should be replaced with the actual name of the container.-n ${path-to-blob}
specifies the path and name of the blob within the container.${path-to-blob}
is a placeholder that should be replaced with the desired path and name of the blob.-f ${path-to-local_file}
specifies the local file path and name of the file that will be uploaded to the blob.${path-to-local_file}
is a placeholder that should be replaced with the actual local file path and name.
By executing this command with appropriate values, you will be able to upload a file to an Azure storage blob.
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.