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

How to install Azure Storage Explorer on macOS Microsoft Azure is a multi-platform solution, and for the IT Pro we can chose which platform we want to use to manage the servicem including macOS, Li...
Bigger disks on Azure Storage If you follow the announcements during the Microsoft Build 2017 conference on the beginning of the month, one of the announcements was the increase of...
Windows Azure e Office365 – Validating the synchro... In this final article of this Tutorial Series we will go over the process to create an user on-premises and what we have to do on our side to enable s...
Removing Azure Active Directory users using Azure ... Cloud Shell is one of the new features in Azure Portal, and it is accessible from virtually any browser and even from Azure App. In this Tutorial, we ...