CmdID / az / az storage / az storage azcopy / az storage azcopy blob
az storage azcopy blob sync
Sync blobs recursively to a storage blob container using AzCopy. Azure CLI extensions reference
2 examples 3 options Its page in the Azure CLI extensions reference
Examples
Sync a single blob to a container.
az storage azcopy blob sync -c MyContainer --account-name MyStorageAccount -s "path/to/file" -d NewBlobIdentify-cThe sync destination container.-sThe source file path to sync from.-dThe sync destination path.Sync a directory to a container.
az storage azcopy blob sync -c MyContainer --account-name MyStorageAccount -s "path/to/directory"Identify-cThe sync destination container.-sThe source file path to sync from.Options
--container, -cThe sync destination container.--destination, -dThe sync destination path.--source, -sThe source file path to sync from.