azcopy: AzCopy: copy data to and from Azure Storage (blobs, files).
azcopy copy SOURCE DEST [--recursive] | azcopy sync SOURCE DEST | azcopy login | azcopy list URL | azcopy jobs list|show ID
Options you will use
copy SRC DST- Copies local files to a blob URL (with a SAS, or after azcopy login) or the other way.
sync SRC DST- Copies only what changed (by content), recursive.
--recursive- Include sub-directories.
login- Sign in with Microsoft Entra ID (device code); access then needs a Storage Blob Data role.
jobs list / jobs show ID- Past jobs and their summary.
list URL- List the blobs under a URL.
Examples
$ azcopy copy ./reports "https://st.blob.core.windows.net/reports?<SAS>" --recursiveUpload a folder with a SAS (needs w + c on the container).
$ azcopy login && azcopy copy ./a.txt https://st.blob.core.windows.net/reports/a.txtUpload with your Entra identity.
$ azcopy jobs show <job id>The summary of a past job.
Gotchas
- The summary block ends with "Final Job Status": Completed, CompletedWithErrors or Failed. The log file path is printed when the job starts.
- A 403 AuthorizationPermissionMismatch after azcopy login means the signed-in user has no data role (Owner is not enough): assign Storage Blob Data Contributor.
Taught in
Try azcopy in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.