wesupport

Need help?

Our experts have had an average response time of 13.14 minutes in February 2024 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

AzCopy in Azure | Demystified

by | Nov 7, 2021

AzCopy in Azure is easy to master with Bobcares by your side. 

At Bobcares, as a part of our Server Management Service, we are devoted to coming up with solutions for any query you may have.

Let’s take a look at how our Support Techs recommend downloading and using the command line interface tool. AzCopy.

All about AzCopy in Azure

Did you know that we can manipulate the Azure Storage container with AzCopy? Well, our in-house experts are here to demonstrate this today.

Before we delve into that let’s take a look at the AzCopy command.

Well, it is a command-line utility used to copy data to and from Microsoft Azure Blob, Table Storage, and File with simple commands resulting in optimal performance.

Furthermore, we can copy data between a storage account and a file system or even between storage accounts.

How to download AzCopy in Azure?

First, we will download the AzCopy V10 executable file to any directory in the computer. Since it is an executable file, we do not have to install. The files are compressed as a zip or tar file depending on which you have downloaded.

In this scenario we will download the tar file meant for Linux x86-64 and decompress the file before executing it as seen below:

wget https://aka.ms/downloadazcopy-v10-linux -O azcopy.tgz;
tar -xzvf azcopy.tgz;
cd azcopy_linux_amd64_10.13.0/;
cp -pv azcopy /usr/local/sbin/;

How to install AzCopy in Linux

Once we have downloaded and copied the required files, we will navigate to the folder where we have copied the files and execute the azcopy.exe command. This lets us know whether AzCopy is working or not.

AzCopy in Azure

 

Getting the Storage Access Key

In order to use the Azure Storage Access key for device login, we need to access the key.

  1. First, we will navigate to the Azure storage account in the Azure Portal and go to Settings.
  2. Then we will go to Access Keys and copy key1 as seen below:

    AzCopy in Azure

  3. After that, we will store the key in order to retrieve it later.

Getting the Storage Access Key

We can also download a file easily from the Azure Storage Blob Container with this command:

AzCopy /Source:https://mbcrumpsa.blob.core.windows.net/images-backup /Dest:C:\mytest /SourceKey:thekeyyoucopiedearlier Pattern:"image1.png”

We can also upload a file from our hard disk to Azure Storage Blob Container as seen below:

AzCopy /Source:C:\mytest /Dest:https://mbcrumpsa.blob.core.windows.net/images-backup /DestKey:thekeyyoucopiedearlier Pattern:"image2.png"

Our Support Engineers would like to point out that these two commands are almost similar except where SourceKey is used for downloading and DestKeys is used for uploading.

Now, we can copy from one Azure Storage account to another with this command:

AzCopy /Source:https://mbcrumpsa.blob.core.windows.net/images-backup /Dest:https://mbcrumpsa.blob.core.windows.net/images /SourceKey:thekeyyoucopiedearlier /DestKey:thekeyyoucopiedearlier Pattern:"image1.png"

In the above example, we are copying file names image1.png from images-backup to images. Then we will refresh the container to see the copied file.

[Looking for help with Server Management? We are just a click away.]

Conclusion

To conclude, the skilled Support Engineers at Bobcares demonstrated how to download, install and use AzCopy in Azure.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED


0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Categories

Tags