Copy+or+Move+Data+to+Azure+Storage+by+Using+AzCopy+v10+ +Microsoft+Learn
Copy+or+Move+Data+to+Azure+Storage+by+Using+AzCopy+v10+ +Microsoft+Learn
AzCopy is a command-line utility that you can use to copy blobs or files to or from a
storage account. This article helps you download AzCopy, connect to your storage account,
and then transfer data.
7 Note
If you need to use a previous version of AzCopy, see the Use the previous version of
AzCopy section of this article.
Download AzCopy
First, download the AzCopy V10 executable file to any directory on your computer. AzCopy
V10 is just an executable file, so there's nothing to install.
These files are compressed as a zip file (Windows and Mac) or a tar file (Linux). To
download and decompress the tar file on Linux, see the documentation for your Linux
distribution.
For detailed information on AzCopy releases, see the AzCopy release page .
7 Note
If you want to copy data to and from your Azure Table storage service, then install
AzCopy version 7.3 .
Run AzCopy
For convenience, consider adding the directory location of the AzCopy executable to your
system path for ease of use. That way you can type azcopy from any directory on your
system.
If you choose not to add the AzCopy directory to your path, you'll have to change
directories to the location of your AzCopy executable and type azcopy or .\azcopy in
Windows PowerShell command prompts.
As an owner of your Azure Storage account, you aren't automatically assigned permissions
to access data. Before you can do anything meaningful with AzCopy, you need to decide
how you'll provide authorization credentials to the storage service.
Authorize AzCopy
You can provide authorization credentials by using Azure Active Directory (AD), or by using
a Shared Access Signature (SAS) token.
AzCopy
To learn more about SAS tokens and how to obtain one, see Using shared access
signatures (SAS).
7 Note
The Secure transfer required setting of a storage account determines whether the
connection to a storage account is secured with Transport Layer Security (TLS). This
setting is enabled by default.
Transfer data
After you've authorized your identity or obtained a SAS token, you can begin transferring
data.
Service Article
Google Cloud Storage Copy data from Google Cloud Storage to Azure Storage (preview)
Service Article
Azure Stack storage Transfer data with AzCopy and Azure Stack storage
To learn about a specific command, just include the name of the command (For example:
azcopy list -h ).
List of commands
The following table lists all AzCopy v10 commands. Each command links to a reference
article.
Command Description
azcopy bench Runs a performance benchmark by uploading or downloading test data to or from a
specified location.
azcopy env Shows the environment variables that can configure AzCopy's behavior.
azcopy jobs Remove all log and plan files for all jobs.
clean
Command Description
azcopy jobs Remove all files associated with the given job ID.
remove
azcopy jobs Resumes the existing job with the given job ID.
resume
azcopy jobs Shows detailed information for the given job ID.
show
azcopy login Logs in to Azure Active Directory to access Azure Storage resources.
azcopy logout Logs the user out and terminates access to Azure Storage resources.
azcopy set- Change the access tier of one or more blobs and replace (overwrite) the metadata,
properties and index tags of one or more blobs.
7 Note
Use in a script
To avoid these issues, obtain a static (unchanging) link to the current version of AzCopy.
That way, your script downloads the same exact version of AzCopy each time that it runs.
Operating Command
system
7 Note
For Linux, --strip-components=1 on the tar command removes the top-level folder
that contains the version name, and instead extracts the binary directly into the
current folder. This allows the script to be updated with a new version of azcopy by
only updating the wget URL.
The URL appears in the output of this command. Your script can then download AzCopy by
using that URL.
Operating Command
system
Windows Invoke-WebRequest
https://azcopyvnext.azureedge.net/release20190517/azcopy_windows_amd64_10.1.2.zip
-OutFile azcopyv10.zip <<Unzip here>>
/usr/bin/keyctl new_session
Storage Explorer uses your account key to perform operations, so after you sign into
Storage Explorer, you won't need to provide additional authorization credentials.
Find errors and resume jobs by using log and plan files in AzCopy
Next steps
If you have questions, issues, or general feedback, submit them on GitHub page.