Moving Files with AzCopy, Azure Storage Explorer and Azure File Sync
This lesson explains three tools for moving and synchronizing files with Azure Storage and when to use each.
Learning outcomes
After completing this lesson, you will be able to:
- Describe AzCopy, Azure Storage Explorer and Azure File Sync.
- Distinguish one-way copying from two-way synchronization.
- Identify the appropriate tool for a file-transfer scenario.
AzCopy
AzCopy is a command-line utility for copying blobs or files to or from a storage account. It can upload, download, copy between storage accounts (and even from other cloud providers' object storage), and synchronize a source and destination in one direction, copying only what has changed. AzCopy is a single executable available for Windows, Linux and macOS, is included in Azure Cloud Shell, and authenticates with Microsoft Entra ID or a shared access signature (SAS).
Because it is a command-line tool, AzCopy suits scripted and scheduled transfers, large data sets and automation. Synchronization with AzCopy is one-way: you choose the source and destination each time, and changes are not copied back.
Azure Storage Explorer
Azure Storage Explorer is a standalone application that provides a graphical interface to manage files and blobs in Azure Storage accounts. It runs on Windows, macOS and Linux and uses AzCopy behind the scenes for transfers. Users can upload and download files, create containers and file shares, manage queues and tables, change blob tiers, and generate shared access signatures, across several accounts and subscriptions.
Storage Explorer suits users who prefer a graphical tool to the command line, and ad hoc tasks. A similar Storage browser is also built into the Azure portal.
Azure File Sync
Azure File Sync centralizes an organization's file shares in Azure Files while keeping the flexibility, performance and compatibility of a Windows file server. An agent installed on a Windows Server turns it into a fast local cache of an Azure file share, and changes are synchronized in both directions. With Azure File Sync you can:
- Use any protocol available on Windows Server to access data locally, including SMB, NFS and FTPS.
- Have as many caches as you need across the world, so branch offices get local performance.
- Replace a failed local server by installing Azure File Sync on a new server, which downloads the namespace from Azure.
- Configure cloud tiering, so that the most frequently accessed files are kept on the local server and infrequently accessed files are kept only in Azure, freeing local disk space.
Azure File Sync
Choosing a tool
The three tools address different needs. The following comparison summarizes them.
Which file tool?
Branch office file servers
A company has file servers in five branch offices. It wants one central copy of the shared files in Azure, local performance in each office, automatic two-way synchronization, and the ability to free disk space on the branch servers by keeping rarely used files only in Azure. Which tool should it use?
Azure File Sync meets every requirement: the Azure file share is the central copy, each branch's Windows Server becomes a local cache with two-way synchronization, and cloud tiering keeps rarely used files only in Azure. AzCopy synchronizes in one direction only and must be run each time, and Storage Explorer is an interactive tool for users, not a continuous synchronization service.
Which file-transfer tool keeps frequently used files on a local server and the rest only in Azure?
Show answer
Azure File Sync, through cloud tiering.
Exam Tips
Remember for the exam
- AzCopy: command-line copies and one-way synchronization; included in Cloud Shell.
- Azure Storage Explorer: graphical management of storage accounts; uses AzCopy internally.
- Azure File Sync: Windows Servers become caches of Azure file shares with two-way sync and cloud tiering.