Azure AZCopy Migration from AWS S3 Bucket to Azure Storage

Azure AZCopy Migration from AWS S3 Bucket to Azure Storage

#AWS #Azure #AzCopy #SASToken #Storage

Play this article

Components we will use,

  • Install AZCopy
  • Data on AWS S3 bucket which will be the source. Azure Storage Account and Container created there which will be Target.
  • Access and Authorization with Azure and AWS (Using SAS Token and SAK and SKI)

Don't worry if you are new to this, I have provided Step by Step Guide on how to use all the above components and AZCopy to migrate Data from AWS S3 to Azure Container.

Follow along,

Download Azcopy from,

  • We have to Install AZCopy and start azcopy.exe using CLI as per,

install and list.JPG

  • Permission to access AWS S3 Bucket and Azure Storage Account

On AWS Side, We need AWS Access Key ID and AWS Secret Access Key and set it in Azcopy CMD

AWS Console > IAM > Users > Select Admin User > Security Credential > Create Access Key

Download and Set it to our Azcopy CMD Console as per below, (For Security purposes, I have dash out SAK and SKI)



On Azure side, We need Azure Target Storage Account SAS Token

Azure Portal > Target Storage Account > Shared Access Signature > Generate > Copy the SAS Token As per shown in below screenshot

Note : I could have create a SAS Token at Container Level and it would have work as well but to generalize for this blog, I did it at storage account level SAS Token.


  • Final Command on AZCopy CMD We have
    AWS : S3 Bucket Name , Set Access Key ID and Secret Access Key
    Azure : Destination Storage Account Name , Target Container Name, Copied SAS Token

Now, what we need to run ,

azcopy cp "[bucket]" "https://[destaccount][container]?[SAS]" --recursive=true

Mine looked like,

C:\azurelabs\azcopy_windows_amd64_10.11.0>azcopy cp "**migrationworkload**" "https://**migrationtargetazure****azcopytarget**?sastoken--XXXX--sastoken" --recursive=true

Final Command.JPG

Job Summary shows,
How many Files got transferred
and Final Job Status : Completed.

And There you go, Files appeared On Target Azure Container.
Nothing less than Magic.!!!!

Target Azure Side.JPG

Note: AZCopy is a powerful tool. It can be used for clients who wants On-Prem Data migration over to Azure Blob Storage as well. The command looks similar to this,

azcopy copy "<local-folder-path>" "https://<storage-account-name>.<blob or dfs><container-name>" --recursive=true

Feel free to try and Let me know if you have any questions or improvements I can provide.

Thanks for the read.
Follow for more Awesome Azure and AWS Content.

Jineshkumar Patel