Forrest logo
back to the azcopy tool

azcopy:tldr:6a9df

azcopy: Upload a local file.
$ azcopy copy '${path\to\source_file}' 'https://${storage_account_name}.blob.core.windows.net/${container_name}/${blob_name}'
try on your machine

This command utilizes the azcopy utility to copy a file from a local source path to a destination storage account in Azure Blob Storage.

Here's an explanation of each component:

  • azcopy: This is the name of the command-line utility provided by Azure that is used for copying data to and from Azure Blob Storage.

  • copy: This is the subcommand for the azcopy command that instructs it to perform a copy operation.

  • ${path\to\source_file}: This is the path to the local file that you want to copy. You need to replace ${path\to\source_file} with the actual path to the source file on the local filesystem.

  • 'https://${storage_account_name}.blob.core.windows.net/${container_name}/${blob_name}': This is the destination URL where the file will be copied. You need to replace ${storage_account_name} with the name of your storage account, ${container_name} with the name of the destination container within the storage account, and ${blob_name} with the desired name for the copied blob.

Overall, this command performs a copy operation using azcopy, taking a file from the local filesystem and copying it to the specified Azure Blob Storage container and 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.
back to the azcopy tool