Data Migration from Amazon S3 to Azure Blob

Screen Shot 2020-02-28 at 10.57.48 amIt may be a requirement of your business to move your data and workload from one public cloud to another. In a world where there are many public cloud choices, this can be complex, cumbersome, and expensive; but, it is the business decision that has been made, and you have to comply.

Last year, Microsoft released version 10 of AzCopy to help customers and users, like you, to simply migrate data from Amazon S3 to Microsoft Azure Blob storage. The AzCopy feature I am going to discuss here is still in preview from Microsoft, but I have been using it for some time now, and am finding it very solid and trustworthy.

I had two customers last week asking about the best and the fastest way to migrate their data from Amazon S3 to Azure Blob. I recommended they use the AzCopy tool, and on this blog post, I am sharing with you the details of my preparation and configuration of AzCopy I used to start their data migration.

Downloading the AzCopy

The good news that AzCopy can be run on Windows 32, Windows 64, Linux and Apple Mac Operating Systems. Download AzCopy using this link.

After it has downloaded, extract the file to your hard drive and you are ready to get started.


To make this blog post focused on our task, let’s take the following scenario. You are using Amazon S3 as long term data storage; but now, your business has decided to switch your cloud storage to Microsoft Azure. You must find the easiest and fastest way to migrate the data from Amazon S3 to Microsoft Azure Blob. The diagram below illustrates the challenge:

AwsMigrate2Azure (1)

To accomplish this task using simple and fast steps, you can use Microsoft command-line tool AzCopy. You have this command in the software you just downloaded in the previous step.

Configuring AzCopy to Accomplish Your Task

Before starting with the task of migrating your data, let’s first take a look at the AzCopy command structure:

Azcopy cp <S3 URL> <Blob URL>SAS>> --recursive

To build up the parameters of the AzCopy command, we must have the Amazon S3 URL and the Microsoft Azure Blob Storage SAS URL. The “–recursive” parameter instructs AzCopy to copy all containers, directories, and blobs.

Next, we must acquire the Amazon S3 bucket URL, Access, and Secret Key.

After you have acquired the bucket URL, Access, and Secret Key,  your next step is to add them to your environment as variables. You do that by running the following commands for Windows:



For Linux and macOS, use these commands:



Next, you must generate and acquire the Azure Blob container <SAS> string. You do that with these steps:

Browse to your Azure Storage Account, Containers; then click on “Shared access signature”

Screen Shot 2020-02-28 at 3.16.51 pm

The string is generated after configuring the Allow services, resources and permissions etc…

Now that has been done, copy the Blob service SAS URL:

Screen Shot 2020-02-28 at 3.18.54 pm

With that done, we now have all the information we need to run the AzCopy command to migrate the data.

Migrate Data between Amazon S3 and Blob

After gathering all the required URLs, Access, Secret keys and Azure Blob <SAS>, it is time to start typing to migrate our Backup Data. I have written below the command lines I used to migrate my backup data from Amazon S3 to Azure Blob:



Azcopy cp "" "" --recursive

This screenshot shows the report that I got from the command and parameters above:

Screen Shot 2020-02-28 at 3.38.15 pm


After completing the migration, and you can confirm that with the last line of the output stating “Final Job Status: Completed”, it is time to test and validate that the process of moving the data has gone as expected. On my lab,  I went through the following steps. First I removed my Amazon S3 from my Veeam Backup and Replication server:

Screen Shot 2020-02-28 at 3.46.52 pm

The next thing I did was to register the Azure Blob storage, and add it to my Scale-Out-Backup-Repository

Screen Shot 2020-02-28 at 3.48.19 pm

On pressing the Finish button, I was greeted with the following notification, indicating that the new Azure Blob already contains an existing backup; Veeam was also asking if I wished to import the Blog. I chose to import it at this stage:

Screen Shot 2020-02-28 at 3.49.16 pm

I was presented with the following results after the import was completed:

Screen Shot 2020-02-28 at 3.52.02 pm

To confirm that my import was successful, I browsed to Veeam Home, and under Backups, I can see the new imported data backups on my new Blob storage. You can see them in the screenshot below:

Screen Shot 2020-02-28 at 3.53.15 pm


I was very impressed with the data throughput of Microsoft AzCopy. In the test of AzCopy I conducted to write this blog, I returned 1133 MB/s. An added bonus is that the data migration path does not pass through the workstation from where you run the command. The path of the AzCopy data is directly between the Amazon S3 AWS URL and the Microsoft Azure Blob URL. It is this direct data path that makes the migration process extremely fast.

Microsoft AzCopy can do much more; but on this blog post, I have focused on a task where I was asked to assist; the migration of backup data from Amazon S3 to Azure blob storage. To learn more about Azcopy, you can use this link. AzCopy is a simple, fast and reliable command-line tool from Microsoft to migrate data between AWS and Azure.

One thought on “Data Migration from Amazon S3 to Azure Blob

Leave a Reply