Your profile

One profile for every MSDEVBUILD site. Only you can see it, and the site owner if you write in.

Lesson 16 of 47
❮Prev Next❯

Move Data with Azure Storage Explorer and AzCopy

Module 2: Storage ⏱ 10 min read Updated

Your note

My notes for this lesson

Select any text in the lesson to highlight it or add a note. Saved in this browser.

    No highlights yet. Select a sentence in the lesson, then pick a colour or add a note.

    All my bookmarks and notes

    Reading settings

    For every lesson, saved in this browser.

    Text size
    Line spacing
    Font

    With IaaS you rent the virtual machine. Microsoft looks after the building, power and hardware; you patch the operating system.

    30-second answer

    Azure Storage Explorer is a free desktop app (Windows, macOS, Linux) for browsing and managing blobs, files, queues and tables; it connects with Microsoft Entra ID, an account name and key, a connection string or a SAS URL, and uses AzCopy for transfers. AzCopy is a free command-line tool for bulk and scripted transfers: azcopy copy (with --recursive), azcopy sync (only what changed, optionally --delete-destination true), make, list, remove and jobs resume. AzCopy authenticates with Microsoft Entra ID (azcopy login, which needs a Storage Blob Data role, not just Owner) or a SAS on the URL. The portal's Storage browser handles quick, small jobs.

    Simulate it » No Azure account needed

    Exam objective: 2.2.5 Manage data by using Azure Storage Explorer and AzCopy. (Skills measured as of April 17, 2026)

    Simulations

    Feel it before you read it. No account needed, nothing leaves this page.

    Azure portal: Browse and move data with Storage browser, Storage Explorer and AzCopy Upload in Storage browser, open Storage Explorer, then use AzCopy.
    </> Embed

    Embed this simulation

    Free for trainers, teachers and bloggers. Paste this into your page:

    Loading the portal…

    The portal’s <strong>Storage browser</strong> is the quick way in: containers, file shares, queues and tables in one place.

    👆 Click the glowing item in the portal to continue

    Read the steps as text
    1. The portal’s Storage browser is the quick way in: containers, file shares, queues and tables in one place.
    2. Open a container and Upload. Note the authentication method: with Entra ID you need a Storage Blob Data role, not just Owner.
    3. Drop files, pick the blob type and access tier. Good for a handful of files.
    4. For bigger jobs, Open in Explorer launches Azure Storage Explorer, the free desktop app for Windows, macOS and Linux. It uses AzCopy under the hood.
    5. Storage Explorer can connect several ways. Someone with only a SAS URL can connect to just that container, nothing more.
    6. For thousands of files or scripts, use AzCopy in Cloud Shell (it’s already installed). Sign in with Entra ID or put a SAS on the URL.
    7. azcopy sync copies only what changed, and --delete-destination true removes what’s gone from the source. Between two accounts AzCopy copies server to server, so the data never passes through your machine.

    🧪 Simulation for learning. Screens are simplified versions of the Azure portal; names, prices and IDs are examples. Nothing here touches real Azure.

    😟 THE PROBLEM

    20,000 files need to move to Blob Storage and the portal upload keeps timing out.

    😊 THE SOLUTION

    Use AzCopy for bulk and scripts, Storage Explorer for point-and-click.

    • Portal uploads are slow✓ Parallel AzCopy jobs
    • Re-copying everything✓ azcopy sync
    • Admins want a GUI✓ Storage Explorer
    🛠️ Solved with: AzCopy + Storage Explorer

    Start with a question

    How do you move a house full of boxes: one at a time in your car, or with a moving truck?

    For three boxes, your car is fine. For a whole house, you hire a truck with a crew that loads many boxes at once and can pick up where they stopped if it rains.

    In Azure Storage, the portal’s Storage browser is your car. Azure Storage Explorer is a comfortable van you drive with a mouse. AzCopy is the moving truck: a command-line tool built for big, repeatable, resumable moves.

    Explain it like I’m 10

    The technical explanation

    Storage browser and Storage Explorer

    The portal’s Storage browser (on every storage account) lets you browse containers, file shares, queues and tables, upload, download, change tiers and generate SAS tokens. Watch the authentication method: with Microsoft Entra user account you need a data role; with Access key you need permission to list keys.

    Azure Storage Explorer is the desktop version, free for Windows, macOS and Linux. You can open it from the portal with Open in Explorer. It connects to:

    • a subscription, by signing in with Microsoft Entra ID,
    • one storage account or service, with a connection string, an account name and key, or a SAS URL (handy for partners: they see only what the SAS allows),
    • the local emulator (Azurite).

    It manages blobs (including tiers, snapshots, soft-deleted blobs and versions), file shares, queues, tables, access policies and Data Lake ACLs. Big uploads and downloads run through AzCopy inside it.

    AzCopy

    AzCopy v10 is a single executable, already installed in Azure Cloud Shell. It’s built for scale: parallel transfers, automatic retries, job plans you can resume, and server-to-server copies.

    CommandUse
    azcopy loginSign in with Microsoft Entra ID (--identity for a managed identity)
    azcopy makeCreate a container or file share
    azcopy copy (cp)Copy files or blobs; add --recursive for folders
    azcopy syncCopy only new or changed files; --delete-destination true removes extras
    azcopy list / removeList or delete blobs
    azcopy jobs list / jobs resumeSee and restart jobs

    Useful flags: --include-pattern "*.pdf", --block-blob-tier Cool, --dry-run, --put-md5.

    Authorization is either:

    1. Microsoft Entra ID: azcopy login. Blob Storage then checks data roles: Storage Blob Data Reader to read, Storage Blob Data Contributor or Owner to write. Subscription Owner isn’t enough. Role assignments can take a few minutes to apply.
    2. SAS token appended to the URL, which needs no role.

    AzCopy doesn’t take an account key directly for Blob Storage; use a SAS or Entra ID.

    # Entra ID: sign in, then copy a folder (needs Storage Blob Data Contributor)
    azcopy login
    azcopy copy "./hr-docs/*" "https://stcontosoprod.blob.core.windows.net/hr-archive" --recursive
    
    # SAS: no role needed, short expiry, HTTPS only
    SAS=$(az storage container generate-sas --account-name stcontosoprod -n hr-archive \
      --permissions acwl --expiry 2026-11-25T18:00Z --https-only -o tsv)
    azcopy copy "./hr-docs/*" "https://stcontosoprod.blob.core.windows.net/hr-archive?$SAS" --recursive
    
    # Nightly mirror: only changes, and remove what was deleted locally
    azcopy sync "./hr-docs" "https://stcontosoprod.blob.core.windows.net/hr-archive?$SAS" --delete-destination true
    
    # Account to account (server to server)
    azcopy copy "https://stcontosoprod.blob.core.windows.net/photos?<SAS>" \
      "https://streplicaweu.blob.core.windows.net/photos?<SAS>" --recursive
    Architect level Performance and logs

    AzCopy picks a concurrency level based on CPU count; set AZCOPY_CONCURRENCY_VALUE to tune it, and azcopy benchmark to test throughput. Every job writes a log and a plan file under ~/.azcopy, which is how azcopy jobs resume knows what’s already done. Copying between accounts keeps the data on the Azure network, so it’s fast and your bandwidth doesn’t matter.

    Real-world business scenario

    Retail

    Tailwind Traders (fictional)

    The problem
    Twenty years of scanned delivery notes (about 2 million PDFs) sat on an ageing file server. Uploading through the portal kept timing out.
    What they used
    AzCopy on the file server, signed in with a managed identity that has Storage Blob Data Contributor, running azcopy copy --recursive once and then azcopy sync every night until cut-over. Admins use Storage Explorer to spot-check folders.
    Why that choice
    Parallel, resumable transfers finished the bulk copy over a weekend, and nightly sync moved only that day's new scans.
    The result
    The file server was switched off a month early, and the scripts now run as a scheduled task for other sites.

    When to use it and when not to

    ✓ Use it when…

    • Bulk uploads, downloads or account-to-account copies (AzCopy).
    • Repeating jobs such as nightly sync from on-premises (azcopy sync).
    • Admins who prefer a GUI for browsing and fixing data (Storage Explorer).

    ✕ Think twice when…

    • Tens of terabytes over a slow connection (Azure Data Box).
    • Continuous copying of new blobs between accounts with no scheduler (object replication).
    • Keeping on-premises file servers in sync with a share as a cache (Azure File Sync).

    ↔ Alternatives to consider

    • Azure Data Box for offline bulk transfer.
    • Object replication for automatic blob copies between accounts.
    • Azure File Sync for file servers with cloud tiering.
    Ready for more?The full lesson adds the technical explanation, when to use it, interview questions and revision notes.

    Test yourself with exercises

    5 original practice questions in the AZ-104 style. Pick your answers, then check them. You will see why each option is right or wrong. Score 75% or more and this topic is marked complete.

    Question 1

    Question 1 of 5

    You run azcopy login and then azcopy copy to upload files to a container. You are an Owner of the subscription. The copy fails with AuthorizationPermissionMismatch. What should you do?

    Question 2

    Question 2 of 5

    A folder on a file server must be copied to a blob container every night. Only new or changed files should be transferred, and files deleted from the folder must be removed from the container. Which command should you use?

    Question 3

    Question 3 of 5 · Select 2

    Which two methods can AzCopy use to authorize access to Azure Blob Storage? Each correct answer presents a complete solution.

    Question 4

    Question 4 of 5

    An administrator on a macOS computer needs a graphical tool to browse blobs, queues, tables and file shares, change blob tiers and generate SAS tokens. What should you recommend?

    Question 5

    Question 5 of 5

    You need to copy all blobs from a container in storage1 to a container in storage2 by using AzCopy. The data must not pass through the computer that runs the command. What should you do?

    Interview preparation

    Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.

    Beginner When would you use AzCopy instead of the portal?

    Model answer

    For anything more than a handful of files, or anything I want to repeat. AzCopy runs many transfers in parallel, can resume a job that broke halfway, can sync only changes, and fits in a script or a scheduled task. The portal is fine for uploading three PDFs.

    Intermediate You run azcopy login and then azcopy copy, and get a 403 AuthorizationPermissionMismatch, even though you're Owner of the subscription. Why?

    Model answer

    Owner is a management role. With azcopy login, AzCopy sends my Microsoft Entra token, and Blob Storage checks data roles. I need Storage Blob Data Contributor (or Owner) on the account or container, and it can take a few minutes to apply. Or I can use a SAS on the URL instead.

    Experienced developer How do you copy a container between two storage accounts without downloading it?

    Model answer

    azcopy copy with both URLs, the source with a SAS that allows read and list, the destination with a SAS that allows write and create, or Entra ID on both. AzCopy uses server-to-server APIs, so the data flows between the accounts and my machine only coordinates the job.

    Scenario A nightly job must keep a folder of PDFs on a file server mirrored to a blob container, including removing files that were deleted locally. What do you run?

    Model answer

    azcopy sync from the local folder to the container URL with --delete-destination true, authenticated with a managed identity (azcopy login --identity) that has Storage Blob Data Contributor, or a SAS. Sync compares last-modified times, so each night only the changes move.

    Quick revision

    Key points

    • Storage Explorer connects via Entra ID, account key, connection string, SAS URL or the Azurite emulator.
    • AzCopy auth = Microsoft Entra ID (azcopy login) or a SAS appended to the URL.
    • Entra ID with AzCopy needs a Storage Blob Data role. Owner alone isn't enough.
    • azcopy copy --recursive for folders; azcopy sync for changes only.
    • Server-to-server copies don't pass data through your machine.
    • AzCopy is preinstalled in Azure Cloud Shell.

    Important terminology

    AzCopy
    A free command-line utility for copying and syncing data to, from and between Azure storage accounts.
    Azure Storage Explorer
    A free desktop app to browse and manage Azure Storage data, which uses AzCopy under the hood for transfers.
    Storage browser
    The data browser built into the storage account blade in the Azure portal.
    azcopy sync
    A command that compares source and destination and copies only new or changed files, optionally deleting extras at the destination.
    Server-to-server copy
    An AzCopy copy between two storage accounts where the data moves directly between them, not through the machine running AzCopy.
    Storage Blob Data Contributor
    An Azure RBAC data role that allows reading, writing and deleting blob data with Microsoft Entra ID.

    Common mistakes

    • Assuming subscription Owner can read blob data through AzCopy or Storage browser with Entra ID.
    • Using azcopy copy every night and re-sending everything instead of azcopy sync.
    • Forgetting --recursive when copying a folder.

    Exam tips

    • "Copy millions of files, scriptable, resumable" = AzCopy.
    • "GUI for admins to manage blobs, queues, tables and files" = Storage Explorer.
    • "Only copy what changed" = azcopy sync.

    Five quick revision questions

    1. 1.Which two ways can AzCopy authenticate to Blob Storage?Show

      Microsoft Entra ID (azcopy login) or a SAS token.

    2. 2.Which flag copies a folder and its subfolders?Show

      --recursive

    3. 3.Which flag makes azcopy sync delete files missing from the source?Show

      --delete-destination true

    4. 4.What role does an Entra identity need to upload blobs with AzCopy?Show

      Storage Blob Data Contributor (or Owner).

    5. 5.Which tool does Storage Explorer use for transfers?Show

      AzCopy.

    Official references

    Finished this lesson? Tick it off. Your progress is saved in this browser.

    Next up: Azure File Shares, Snapshots and Soft Delete

    Studying with a friend? Send them this lesson

    It's free and needs no sign-up. Their progress saves in their own browser.

    Lesson done? Make it stick with a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges. Play ❯

    Install MSDEVBUILD Azure

    Free · no account · works offline

    Save the whole course for offline ›

    Hi, I’m your Nimbus

    Your study buddy. Pick what we do next.

    MSDEVBUILD · Multi-Stack Dev Build

    Sign in to MSDEVBUILD

    One account for Azure certifications and the blog: sign in here and you are signed in on both. Your XP, streak, practice deck and certificate stay in sync on every device. Optional: everything works without an account.