Azure Files, File Sync and Data Transfer: Shares, Snapshots, AzCopy, Storage Explorer, Import/Export and Data Box
Azure Files
- Fully managed SMB (and NFS on premium) file shares in the cloud
- Replaces or extends on-premises file servers
- Tiers: Premium (SSD), Transaction optimized, Hot, Cool
bash
az storage share-rm create -g rg-demo --storage-account stdemo482 -n teamshare --quota 100 --access-tier TransactionOptimized
az storage share-rm list -g rg-demo --storage-account stdemo482 -o table
Mount a Share
powershell
# Windows (port 445 must be open)
$key = "<storage-key>"
cmd.exe /C "cmdkey /add:stdemo482.file.core.windows.net /user:localhost\stdemo482 /pass:$key"
New-PSDrive -Name Z -PSProvider FileSystem -Root "\\stdemo482.file.core.windows.net\teamshare" -Persist
bash
# Linux
sudo mkdir -p /mnt/team
sudo mount -t cifs //stdemo482.file.core.windows.net/teamshare /mnt/team -o username=stdemo482,password=<key>,serverino,vers=3.0
Port 445 Some internet providers block outbound port 445. Use a VPN or ExpressRoute, or a private endpoint, when mounting from on-premises.
Snapshots and Backup
bash
az storage share snapshot --account-name stdemo482 -n teamshare
az storage share list --account-name stdemo482 --include-snapshots -o table
- Snapshots are read-only point-in-time copies. Enable soft delete for shares
- Use Azure Backup for scheduled share backup
Azure File Sync
- Create a Storage Sync Service in Azure
- Create a sync group with a cloud endpoint (your Azure file share)
- Install the File Sync agent on a Windows Server and register it
- Add a server endpoint (a folder path)
- Turn on cloud tiering: free space threshold keeps hot files local, cold files become stubs in the cloud
- Several servers can sync one share, giving branch offices fast local access
- Protect the share with Azure Backup
Move Data Online
bash
azcopy login
azcopy copy "C:\data\*" "https://stdemo482.blob.core.windows.net/images" --recursive
azcopy sync "C:\data" "https://stdemo482.blob.core.windows.net/images" --recursive
azcopy copy "https://stdemo482.file.core.windows.net/teamshare?<SAS>" "./backup" --recursive
- AzCopy: fast, resumable command line copy
- Storage Explorer: graphical tool to browse and transfer
- Data Factory for scheduled pipelines
Move Data Offline
| Option | Use |
|---|---|
| Azure Import/Export | Ship your own disks for large transfers (check current availability) |
| Data Box Disk | Up to about 35 TB with SSDs sent to you |
| Data Box | About 80 TB appliance |
| Data Box Heavy | Hundreds of TB |
Rule of thumb: if online transfer will take more than about a week, consider a Data Box.
Practice
- Create a file share and mount it on a VM
- Take a snapshot and restore one file
- Use AzCopy to upload a folder
- Explain cloud tiering in two sentences
Conclusion
Azure Files replaces file servers. File Sync gives local caching with cloud tiering, and AzCopy, Storage Explorer or Data Box move data online or offline depending on size and time.
Quick Summary: Files; mount; snapshots; File Sync; online; offline.

