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

Software-Defined Networking with Windows Server an... Free online event with live QA with the WAP team: http://aka.ms/WAPIaaS Two half-days – Wednesday July 16th & Thursday July 17th – 9am-1pm PST ...
New version of Azure Backup Server introduces Mode... WOW! What a day for me! Microsoft Azure just announces new and improved features on the new version Azure Backup Server. Let’s start! They announce...
Top 5 of the Week: Week of May 8th Folks, Here are the top 5 IT news for this week. Quick guide to Windows 10 training and certification for IT pros https://blogs.technet...
Azure enhancement Site-to-Site VPN functionality After Scott Guthrie announce the new enhancements on Azure, last May, I was very excited with one in particular. Multi Site-to-Site VPN. This enhancem...