liveBook · Manning

AzCopy

As explained in Microsoft Azure in Action

AzCopy is a Microsoft command-line utility for copying files and data between local systems and Azure Storage resources.

AzCopy is a command-line tool for moving files to and from Azure Storage, or between Azure Storage accounts. A practical use is uploading HTML, CSS, and JavaScript files from your computer to the $web container for a static website. section 9.6 section 9.2

To upload a static website:

  • Prepare the website files and install AzCopy on the computer where you’ll run the commands. section 9.2 section 9.2.1
  • Create the destination container with `azcopy make`. Authenticate the command with either Microsoft Entra ID or a Shared Access Signature (SAS) token. section 9.2.1 section 9.2.2
  • Run `azcopy copy` from the local website directory to the storage URL. Add `--recursive=true` to include subfolders and their files. section 9.2.2

Copy a website directory

A Windows example copies `C:\Repos\Banning Books\banning-books` to the storage account’s `$web` destination. The destination URL includes a SAS token generated in the Azure portal; `--recursive=true` brings the whole directory tree along. Use your own path, storage URL, and token. In Windows Command Shell, put paths and URLs in double quotes. section 9.2.1 section 9.2.2

How Microsoft Azure in Action covers it

How deep it goes
Walks through container creation, SAS authentication, and recursive copying; defers deployment automation.
Examples
Uses a local HTML, CSS, and JavaScript website, a `$web` destination, and `azcopy make` and `azcopy copy` commands.
What it assumes
Assumes prepared website files and a storage account, but starts the AzCopy workflow with installation and container creation.
What you can do after
Apply it via AzCopy to create an authenticated storage destination and upload a complete static website directory.
How it connects
Connects AzCopy to Azure Blob Storage, static website hosting, SAS tokens, and Microsoft Entra ID authentication.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Microsoft Azure in Action. The section links point to the parts of the book it draws on.