AzCopy Practice Lab
The AzCopy command is a command-line utility specially created and optimized for moving data in and out of Azure storage. Using AzCopy tool, you can bulk-transfer from the local file system on an on-premises computer to the cloud.
What is AzCopy?
The AzCopy utility is designed and optimized for performing large-scale bulk transfers of data to and from Azure storage. You use AzCopy to transfer entire directory structures from your local computer into blob storage, and back again.
This tool performs its operations asynchronously and can use multiple concurrent threads to read and write data. Additionally, it’s fault-tolerant. If a transfer is interrupted for some reason and fails, it can resume the operation from where it left off, once the situation is resolved.
To learn about a specific command, just include the name of the command (For example: azcopy list -h
).

The latest version of AzCopy enables you to take incremental backups of blobs and can keep the contents of blob storage accounts synchronized so that they contain the same version of data.
Upload data
Use the AzCopy copy command to upload data to Azure storage. The simplest form of this command copies a file to a blob. The example below uploads the contents of a file named myfile.txt to a blob, also named myfile.txt, to the mycontainer container in the myaccount blob storage account. The storage account and container must already exist.
azcopy copy myfile.txt https://myaccount.blob.core.windows.net/mycontainer/
The AzCopy command requires you are authenticated and authorized to access the storage account. If your organization uses ADFS, you can authenticate by using the azcopy login command and signing in. Alternatively, the owner of a storage account can create a Shared Access Signature (SAS) token that provides access to the storage account. The SAS token is time-limited, and can be restricted to only allowing certain operations. You provide the SAS token as a query string to the Azure storage URL when you upload or download data:
azcopy copy myfile.txt https://myaccount.blob.core.windows.net/mycontainer/?<sas token>
You can upload multiple files and complete folder structures with AzCopy. The –recursive=true option will walk the folder structure starting at the specified point, and will create a corresponding structure of blobs in your container in Azure storage. You can also specify that only files whose names match a particular pattern are uploaded, by using wildcard pattern matching. This example uploads all files under the myfolder folder and subfolders:
azcopy copy myfolder https://myaccount.blob.core.windows.net/mycontainer/?<sas token> --recursive=true
To understand azCopy properly kindly perform steps mentioned in following exercise of Microsoft Learn and if you want to explore some more practice labs on Microsoft Azure then click here.
Exercise – Move Azure storage blobs using AzCopy
- What’s Your Version Of “YOU CAN, IF YOU..” - January 28, 2022
- 20 days road map plan for Microsoft Azure Certification - April 21, 2021
- Bird’s eye view of Azure Arc - April 21, 2021