azcopy tool provide an easier way to migrate from S3 to Azure storage.
Operating system support:
Windows – yes
First, we will require certain credentials and token from amazon and azure below are the list
Environment Variables –
1.AWS ACCESS_KEY_ID
2.AWS_SECRET_ACCESS_KEY
3.Shared access signature of storage account. (Azure)
Process to generate share access signature
Then in azcopy we have to set the environment variable.
Execute below command to set variables:
set AWS ACCESS_KEY_ID= <access key id >
set AWS_SECRET_ACCESS_KEY=<access secret key
Format:
Now using the below command, we can migrate.
azcopy cp "<S3 bucket name >" " <shared access signature of azure storage account >" --recursive=true
E.g.
azcopy cp "https://pcfunda.s3.ap-south-1.amazonaws.com" "https://pcfunda1.blob.core.windows.net/?sv=2019-02-02&ss=bfqt&srt=sco&sp=rwdlacup&se=2020-01-28T14:24:47Z&st=2020-01-28T06:24:47Z&spr=https&sig=s0bNDT8cKRXXXXXXXzaYdfQ2%2BH5nVXcI%3D" --recursive=true
0 on: "Migrating S3 bucket to Azure Storage. "