---
title: "Master AzCopy: Download, Install, and Authenticate"
description: "Learn to download, install, and authenticate AzCopy for seamless Azure storage management. Boost your cloud skills and efficiency."
canonical: "https://adamtheautomator.com/azcopy-download/"
---

# Master AzCopy: Download, Install, and Authenticate

> Learn to download, install, and authenticate AzCopy for seamless Azure storage management. Boost your cloud skills and efficiency.

Source: https://adamtheautomator.com/azcopy-download/

---

ATA Learning

Tap to hide

[

ATA Learning

](/)

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Search for:  

*   [](https://twitter.com/adbertram)
*   [](https://github.com/Adam-the-Automator)
*   [](https://www.linkedin.com/company/adam-the-automator-llc)
*   [](/feed/)

![Master AzCopy: Download, Install, and Authenticate](https://adamtheautomator.com/wp-content/uploads/2019/12/copy-27190_1280.png)

# Master AzCopy: Download, Install, and Authenticate

[![](https://secure.gravatar.com/avatar/9a14f10ff1b1ec7d790d34f5b559e4d3de2d31b172e6ef266dfd8b479174d97b?s=192&d=mm&r=g)June Castillote](https://adamtheautomator.com/author/june/)23 December 20194 min. read

Categories: [Cloud](/category/cloud/)

Tags:[Microsoft Azure](/tag/microsoft-azure/)

Table of Contents

*   [Prerequisites](#prerequisites)
*   [Download AzCopy: The Manual Way](#downloading-azcopy-the-manual-way)
*   [Download AzCopy via PowerShell Script](#downloading-azcopy-via-powershell-script)
*   [Authenticating AzCopy](#authenticating-azcopy)
*   [Summary](#summary)

The [AzCopy tool](https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10) is a free and handy tool that allows you to copy and move data to and from Azure storage. It’s a great command-line utility that can automate and streamline the process but requires some setup. Let’s get into how to download AzCopy and get started.

In this article, you’re going to learn how to prepare your system to use AzCopy. This includes downloading and authenticating the tool to have access to Azure storage. By the time you’re through, you’ll be ready to use AzCopy to manage Azure storage data.

Related:[How To Manage Files Between Local And Azure Storage With AZCopy](https://adamtheautomator.com/azcopy-storage/)

> _The latest and supported version of AzCopy as of this writing is AzCopy v10. AzCopy is available for [Windows](https://aka.ms/downloadazcopy-v10-windows), [Linux](https://aka.ms/downloadazcopy-v10-linux), and m[acOS](https://aka.ms/downloadazcopy-v10-mac). In this article, only the Windows AzCopy utility is covered._

## Prerequisites

You’ll learn hands-on how to perform a few different tasks in this article. If you’d like to follow along, be sure you have the following prerequisites met.

*   An Azure subscription. If you do not have this yet, you can [request a trial subscription](https://azure.microsoft.com/en-us/free/).
*   Azure Storage Account. Please refer to [Create a storage account](https://docs.microsoft.com/en-us/azure/storage/common/storage-account-create?tabs=azure-portal) to learn more.
*   An Azure AD tenant created with a user account part of the [Storage Blob Data Contributor](https://docs.microsoft.com/azure/role-based-access-control/built-in-roles#storage-queue-data-contributor) or [Storage Blob Data Owner](https://docs.microsoft.com/azure/role-based-access-control/built-in-roles#storage-blob-data-owner) groups
*   Windows PowerShell 5.1 or PowerShell Core 6+ (optional if downloading AzCopy via PowerShell script)

## Download AzCopy: The Manual Way

There are a couple of different ways to download AzCopy. Let’s first do it the manual way. You might use this method if you don’t intend to install AzCopy on many computers at once.

Navigate to this URL – [https://aka.ms/downloadazcopy-v10-windows](https://aka.ms/downloadazcopy-v10-windows) and it should initiate a download of the zip file. Once downloaded, extract the zip file to the _C:\\AzCopy_ or a folder of your choice.

Lastly, add the installation directory to the system path. Refer to the article _[How to set the path and environment variables in Windows](https://www.computerhope.com/issues/ch000549.htm)_ if you need to know how to do that. Adding the folder path to the Windows PATH allows you to call the _azcopy_ executable whenever you are in any working directory at the command line.

## Download AzCopy via PowerShell Script

If you intend to install AzCopy on many machines or simply need to provide instructions for someone else to install it, you can use PowerShell also. Using a PowerShell script simplifies the process down to a single script.

Create a new PowerShell script and copy/paste the below contents into it. You can get an idea of which each section of the script is doing by inspecting the in-line comments.

Related:[How to Run a PowerShell Script From the Command Line and More](https://adamtheautomator.com/run-powershell-script/)

By default, the below script will download AzCopy in the _C:\\AzCopy_ folder. If you’d like to change that, when running the script, use the `InstallPath` parameter or simply change the default path in the script itself.

```powershell
$InstallPath = 'C:\AzCopy'

# Cleanup Destination
if (Test-Path $InstallPath) {
    Get-ChildItem $InstallPath | Remove-Item -Confirm:$false -Force
}

# Zip Destination
$zip = "$InstallPath\AzCopy.Zip"

# Create the installation folder (eg. C:\AzCopy)
$null = New-Item -Type Directory -Path $InstallPath -Force

# Download AzCopy zip for Windows
Start-BitsTransfer -Source "https://aka.ms/downloadazcopy-v10-windows" -Destination $zip

# Expand the Zip file
Expand-Archive $zip $InstallPath -Force

# Move to $InstallPath
Get-ChildItem "$($InstallPath)\*\*" | Move-Item -Destination "$($InstallPath)\" -Force

#Cleanup - delete ZIP and old folder
Remove-Item $zip -Force -Confirm:$false
Get-ChildItem "$($InstallPath)\*" -Directory | ForEach-Object { Remove-Item $_.FullName -Recurse -Force -Confirm:$false }

# Add InstallPath to the System Path if it does not exist
if ($env:PATH -notcontains $InstallPath) {
    $path = ($env:PATH -split ";")
    if (!($path -contains $InstallPath)) {
        $path += $InstallPath
        $env:PATH = ($path -join ";")
        $env:PATH = $env:PATH -replace ';;', ';'
    }
    [Environment]::SetEnvironmentVariable("Path", ($env:path), [System.EnvironmentVariableTarget]::Machine)
}
```

Once the script has run, you can then confirm that AzCopy was downloaded successfully. While still in the PowerShell console, listing the files in the install path by running `Get-ChildItem -Path $InstallPath` replacing whatever folder you used.

If everything went well, you should see the _azcopy.exe_ utility and a license text file.

You can also confirm that the installation path is added to the system path variable by running `$env:Path -split ";"` and noticing that the install folder shows up at the bottom of the list.

In the example below, `C:\AzCopy` is listed which means that the location was added successfully.

![Download AzCopy directory](/wp-content/uploads/2019/12/rId48.png)

Download AzCopy directory

## Authenticating AzCopy

The download AzCopy task should be complete. But before you can perform any tasks, it is necessary to authenticate to your Azure subscription to access Azure Storage first.

There are two ways to authenticate AzCopy to your Azure storage accounts – [Azure Active Directory](https://azure.microsoft.com/en-us/services/active-directory/) or by a [Shared Access Signature (SAS) token](https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview). In this article, we’ll focus on using Azure AD. If you’d like to learn how to create a SAS token to authenticate that way, check out [How to Generate an Azure SAS Token to Access Storage Accounts](https://adamtheautomator.com/azure-sas-token/).

The most common method to authenticate AzCopy is via Azure AD. When using Azure AD, you have several options. Some of these options are:

*   Interactive Login – User is prompted to log in using the browser.
*   [Service Principal](https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal) + password – For non-interactive login. Recommended for automation and scripting.
*   Service Principal + certificate – For non-interactive login. Recommended for automation and scripting.

In this article, you will learn how to authenticate via interactive login. To do so, first, open a command prompt or PowerShell and run the below command. The `--tenant-id` parameter is optional but recommended, especially if your login account is associated with more than one Azure tenant.

```powershell
> azcopy login --tenant-id "TENANT-ID"`
```

> _If you need help finding your Azure AD tenant ID, check out, [this article](https://o365hq.com/faq/how-to-find-your-office-365-tenant-id)._

Once executed, you will be asked to open a browser and navigate to [https://login.microsoftonline.com/common/oauth2/deviceauth](https://login.microsoftonline.com/common/oauth2/deviceauth) and enter the displayed code. You can see what that will look like below.

![Enter the code from AzCopy into the browser](/wp-content/uploads/2019/12/rId57.png)

_Enter the code from AzCopy into the browser_

Once you’ve entered the code into the browser, click _Next_ and proceed to sign in to your account.

![Sign in to Azure AD](/wp-content/uploads/2019/12/rId58.png)

Sign in to Azure AD

When sign-in is done, you should see the status shown in the browser and in the terminal similar to what’s shown in the screenshot below.

![AzCopy login is successful](/wp-content/uploads/2019/12/rId59.png)

AzCopy login is successful

## Summary

In the end, you now have the needed knowledge on how to download and authenticate AzCopy on your machine.

Now that you have all this knowledge, you should now be ready to put AzCopy into action! If you’d like to take AzCopy for a spin, head over to the next article _[How To Manage Files Between Local And Azure Storage With AZCopy](https://adamtheautomator.com/azcopy-storage/)_ to learn how to use AzCopy to manage and transfer data between local and Azure storage.

Share this article

[Share on X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fadamtheautomator.com%2Fazcopy-download%2F&text=Master%20AzCopy%3A%20Download%2C%20Install%2C%20and%20Authenticate)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fadamtheautomator.com%2Fazcopy-download%2F)[Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fadamtheautomator.com%2Fazcopy-download%2F)

## Related Posts

![](https://adamtheautomator.com/wp-content/uploads/2026/07/featured_image-1.webp)

### [Microsoft Azure Certification Roadmap: Choose the Right Path](/azure-certification-roadmap-2/)

Choose the right Microsoft Azure certification for your career goals. Compare AZ-900, AZ-104, AZ-305, AZ-400, AZ-700, DP-700, study timelines, and 2026 retirements.

![](https://adamtheautomator.com/wp-content/uploads/2021/05/How-to-RenameMove-Azure-Resource-Groups-GUI-and-CLI.jpg)

### [Smart Ways to Rename Azure Resource Groups (GUI and CLI)](/rename-azure-resource-group/)

Unlock the secret to Rename Azure Resource Groups! Dive into our easy guide for reshaping your Azure landscape with Portal, PowerShell, and CLI techniques.

![](https://adamtheautomator.com/wp-content/uploads/2021/03/azure-cli.jpg)

### [Master Azure CLI: Command Your Cloud with Confidence](/azure-cli/)

Unlock the full potential of cloud management with the Azure CLI. This guide provides the essentials to get you started with Azure resources efficiently.

## Categories

*   [IT Ops](/category/it-ops/)
*   [Cloud](/category/cloud/)
*   [DevOps](/category/devops/)
*   [Home Ops](/category/home-ops/)
*   [Information Security](/category/infosec/)
*   [Software Development](/category/software-development/)

## Site

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Copyright 2026© ATA Learning | [Privacy Policy](/privacy/)
