Home › Studies › AZ-104 › Storage › AzCopy & Storage Explorer

AzCopy & Storage Explorer

Sign-in · copy vs sync · defaults · server-to-server copy · Storage Explorer connections

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

AzCopy v10 commands

TaskCommandNotes
Sign in with Microsoft Entra IDazcopy loginDevice code by default. Add --tenant-id=<tenant-id> if sign-in errors. Needs an OS secret store.
Create a containerazcopy make 'https://<acct>.blob.core.windows.net/<container>'There is no create command.
Upload a folder with subfoldersazcopy copy 'C:\myDirectory' '<container-url>' --recursive--recursive is needed to traverse subdirectories.
Upload folder contents onlyazcopy copy 'C:\myDirectory\*' '<container-url>/<dir>'The folder name itself is not kept.
Copy a container between accountsazcopy copy '<src-container-url>' '<dst-container-url>' --recursiveServer-to-server: data flows between storage servers.
Incremental updateazcopy sync '<local-path>' '<container-url>' --recursiveOne-way only.
Mirror deletes tooazcopy sync ... --delete-destination=trueAlso accepts prompt.
Upload straight to Archiveazcopy copy ... --block-blob-tier=ArchiveTier values: None, Hot, Cool, Archive.
Resume an interrupted jobazcopy jobs list, then azcopy jobs resume <job-id>Logs and plan files are kept.

The AzCopy v10 command list is: bench, copy, doc, env, jobs, list, login, login status, logout, make, remove, sync, set-properties. There is no rename command.

Defaults to know

CommandFlagDefault
copy--overwritetrue (also false, prompt, ifSourceNewer)
copy--recursivefalse
copy--blob-typeDetect
copy--s2s-preserve-access-tiertrue (set false if the destination doesn't support tiers, such as a premium block blob account)
copy--s2s-preserve-blob-tagsfalse
sync--recursivetrue
sync--delete-destinationfalse
sync--compare-hashNone (or MD5)
sync--mirror-modefalse

Authorization

copy vs sync

Storage Explorer

Exam Tips

Tick each tip once you can answer it without looking.

“VM with a system-assigned managed identity uploads with AzCopy and no stored secrets” → azcopy login --identity plus Storage Blob Data Contributor. Trap: service principal secret kept in the script.

“azcopy sync with no flags; files deleted from the source still exist in the container” → --delete-destination defaults to false. Trap: assuming sync mirrors deletes by default.

“Upload a local folder including subfolders” → azcopy copy <path> <container-url> --recursive. Trap: without --recursive subdirectories are not traversed.

“Keep a container identical to a local folder, removing deleted files” → azcopy sync ... --delete-destination=true. Trap: azcopy copy has no delete option; --overwrite only controls conflicts.

“Two-way sync between two folders” → Not possible: azcopy sync is one-way. Trap: a bidirectional flag.

“azcopy login worked but the copy returns 403; the user is subscription Owner” → Assign a data role such as Storage Blob Data Contributor. Trap: Owner and Contributor are management roles; regenerating keys doesn't help.

“Role assigned a minute ago but AzCopy still fails” → Wait: propagation can take up to 5 minutes.

“Role needed to download blobs with Entra sign-in” → Storage Blob Data Reader. Trap: the management Reader role.

“Copy a container between two accounts without routing data through the client” → azcopy copy uses server-to-server APIs. Trap: downloading and re-uploading.

“Copy to a premium block blob account fails because of the tier” → Add --s2s-preserve-access-tier=false. Trap: changing the source to Hot.

“Upload straight to the Archive tier” → --block-blob-tier=Archive.

“Create a container from the command line with AzCopy” → azcopy make. Trap: azcopy create doesn't exist.

“Rename a blob with AzCopy” → Not supported: there is no rename command. Trap: azcopy rename.

“Resume an interrupted AzCopy job” → azcopy jobs resume <job-id>. Trap: rerunning from scratch with --overwrite.

“Protect against mistakes before using sync with --delete-destination” → Enable blob soft delete.

“Storage Explorer generates a SAS for a container: which type?” → Service SAS, signed with the account key. Trap: a user delegation SAS: Storage Explorer can't create one.

“Attach a container in Storage Explorer when you have data-layer access but no management-layer access” → Sign in using Microsoft Entra ID when attaching to the resource.

“AzCopy from an admin laptop fails; the storage firewall is on” → The laptop must be inside an allowed IP range or virtual network. Trap: a missing management role.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Object ReplicationAzure Files →