How to move blob data between Storage Accounts using AZCopy

Share this:

In some situations, data from a Storage Account must be moved to a different Storage Account and we can use several options to accomplish this task, such as Azure Explorer, PowerShell and AZCopy utility.

Solution

In this Tutorial, we are going to use AZCopy which can be downloaded from here. Before going to the command prompt to use AZCopy we must gather two pieces of information of the source and destination Storage account.

We can always download the file and upload to the new Storage Account, however, that is not every efficient, the best way is to leverage the Azure backbone to copy the data from source to target.

In this Tutorial, we are going to copy a VHD file between Storage Accounts in different subscriptions, this process is important when you have several regions and you need to replicate your images across.

Both pieces information can be found at the same place, open the desired Storage Account and save the Storage Account Name and Key1.

image

 

The next step is to open command prompt (by default the AZCopy is installed on C:\Program Files (x86)\Microsoft SDKs\Azure\AZCopy, and execute the following command to copy a VHD file between Storage Accounts, keep in mind that the process will take some time to complete.

.\AzCopy.exe /Source:https://StorageAccountSource.blob.core.windows.net/vhds /Dest:https://StorageAccountDestination.blob.core.windows.net/vhds /SourceKey:”keyXXX”  /DestKey:”DestinationKeyXX” /SyncCopy /s

image

Written by Anderson Patricio

Anderson Patricio

Anderson Patricio is a Canadian MVP in Cloud and Datacenter Management, and Office Server and Services, besides the Microsoft Award he also holds a Solutions Master (MCSM) in Exchange and several other certifications. Anderson has been contributing to the Microsoft Community with articles, tutorials, blog posts, twitter, forums and book reviews. He is a regular contributor here at ITPROCentral.com, MSExchange.org, Techgenix.com and Anderson Patricio.org (Portuguese).

Related Post

Windows Azure and Office 365 – Getting a fre... In this first article we will go over the process to subscribe on both Office365 and Windows Azure, and after that in our following Tutorials we will ...
How to create a Virtual Network using Azure Resour... Configuring a Virtual Network and a VPN connection between Microsoft Azure and a local site using Azure Resource Manager deployment model. Solution ...
Techgenix Article: Manage on-premises servers usin... Hello folks, Last week, I published an article explaining the process to configure SMT (Server Management Tool) which in Preview on Microsoft Azure. ...
Azure Cloud Shell Everywhere WOW! Microsoft did it again! If you didn’t saw the announcements at the Microsoft Build 2017 Conference, you should! They announce a lot of new thing...