Copy Our On-Premises Data To Azure Storage Using AZCopy

Introduction

 
AZCopy is the command-based tool to migrate our on-premises data to Cloud storage. AZCopy is preferred if you have hundreds of GBs of data to migrate using sufficient bandwidth. We can use this tool on Windows and Linux.
 
Step 1
 
In the Azure portal, click the “+Create a resource” and click “Storage”. In the storage, select “Storage Account”.
 
Copy Our On-Premises Data To Azure Storage Using AZCopy
 
Step 2
 
Select the Subscription, Resource group, enter the Storage Account Name, and click “Review + Create”. Then, click “Create”. In this demo, our storage account name is “myazcopy”.
 
Copy Our On-Premises Data To Azure Storage Using AZCopy
 
Step 3
 
After successfully creating the storage account, open the storage account “myazcopy” and click “Blobs”.
 
Copy Our On-Premises Data To Azure Storage Using AZCopy
 
Step 4
 
In the Blobs, click “+Container” and enter the name for the container and click “Ok”. In this demo, our container name is “mydatastore”.
 
Copy Our On-Premises Data To Azure Storage Using AZCopy
 
Step 5
 
Download and Install the Microsoft Azure Storage AzCopy. To download the software, click here.
 
Copy Our On-Premises Data To Azure Storage Using AZCopy
 
Step 6
 
Open the start menu and click “Microsoft Azure Storage AzCopy”.
 
Copy Our On-Premises Data To Azure Storage Using AZCopy
 
Step 7
 
In the Azure Storage AzCopy, we need to enter the following command.
 
Azcopy /source:<source path> /dest:<destination path> /destkey:<Access key of destination blob> /s
 
Here - 
<source path> - Our On-Premises Location
<destination path> - Our Blob Storage Location
<Access key of destination blob> - Our Storage Account Key
 
Copy Our On-Premises Data To Azure Storage Using AZCopy
 
Step 8
 
For source path, open your on-premises location and copy the path in this demo. Our path is “C:\Files”.
 
Copy Our On-Premises Data To Azure Storage Using AZCopy
 
Step 9
 
For Destination Path, open the blob storage “mydatastore” and click “Properties” and then copy the URL. In this demo, our URL is “https://myazcopy.blob.core.windows.net/mydatastore”.
 
Copy Our On-Premises Data To Azure Storage Using AZCopy
 
Step 10
 
For Access Key of Destination Blob, open the Storage account “myazcopy”, and click “Access keys” and then copy the “Key1”. In this demo, our key is “MpwXQ0woD8vDCQFjjW/Gmz3qQ/8TrJrAImYy6qMZb/dxC5MRijTrhl2o+YY/v6U5SFp55+yO+NYRhqpwJxnYPQ==”
 
Copy Our On-Premises Data To Azure Storage Using AZCopy
 
Step 11
 
Paste the “Azcopy /source:C:\Files /dest:https://myazcopy.blob.core.windows.net/mydatastore /destkey:MpwXQ0woD8vDCQFjjW/Gmz3qQ/8TrJrAImYy6qMZb/dxC5MRijTrhl2o+YY/v6U5SFp55+yO+NYRhqpwJxnYPQ== /s” command and hit Enter.
 
Copy Our On-Premises Data To Azure Storage Using AZCopy
 
Step 12
 
Now, we can verify if our files are copied successfully.
 
Copy Our On-Premises Data To Azure Storage Using AZCopy
 
Step 13
 
Now, open your Blob account “mydatastore”.
 
Copy Our On-Premises Data To Azure Storage Using AZCopy 
 
Step 14
 
Now, we can verify that our all files are uploaded to our Blob container.
 
Copy Our On-Premises Data To Azure Storage Using AZCopy
 

Summary

 
In this article, we learned how to migrate our on-premises data to Azure Blob storage using AZCopy. If you have any questions, feel free to comment under the article.


IFS R&D International (Private) Limited
IFS is a global enterprise software vendor providing solutions that help companies get better return