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
