Azure Files, File Sync and moving data
Create and secure file shares, extend them to on-premises servers with File Sync, and choose the right tool to move data in.
In this lesson you'll learn
- File share tiers, SMB and NFS, and the port 445 problem
- Identity-based access with share and NTFS permissions
- Azure File Sync topology and cloud tiering
- AzCopy, Storage Explorer, Data Box and Import/Export
1. Azure file shares
New to Azure Files? Start here
Azure Files gives you network drives in the cloud. Windows, Linux and macOS can map them like a normal shared folder, for example as drive Z:. There is no server to manage.
| Tier | Storage | Use |
|---|---|---|
| Premium | SSD, in a FileStorage account | Databases, high IOPS apps, NFS shares |
| Transaction optimised | HDD | Busy general shares |
| Hot | HDD | Team shares and File Sync |
| Cool | HDD | Online archive |
- SMB uses TCP port 445. Many home ISPs block it, so mounting from home fails. Use a VPN, or File Sync to a local server.
- NFS 4.1 shares need a premium account and network restriction.
- The UNC path looks like \\\\stsskaiser.file.core.windows.net\\finance.
- Share snapshots appear in Windows as Previous Versions, so users can restore their own files.
2. Identity-based access
Instead of mounting with the storage key, users can sign in with their own identity. Set it up in this order:
- Enable an identity source on the account: on-premises AD DS, Entra Domain Services, or Entra Kerberos for hybrid users.
- Assign share-level permissions with Azure RBAC: Storage File Data SMB Share Reader, Contributor or Elevated Contributor.
- Set directory and file permissions with Windows NTFS ACLs.
Exam focus
Share-level roles go to synced users and groups, not to computer accounts. Cloud-only users cannot use AD DS authentication. If a role assignment does not work, check that step 1 was done first.
3. Azure File Sync
File Sync keeps folders on your Windows Servers in sync with an Azure file share. Offices get fast local access, and Azure holds the master copy.
- In Azure: create a Storage Sync Service.
- On the server: install the File Sync agent and register the server.
- In Azure: create a sync group, which also creates its cloud endpoint.
- Add a server endpoint for the folder on each server.
- Cloud tiering keeps hot files local and replaces cold ones with pointers, freeing disk space.
- Changes on a server sync almost immediately. Changes made directly in the Azure share are found by a detection job, which runs every 24 hours.
- When the same file name exists in two places at first sync, both are kept and one is renamed. Nothing is overwritten.
4. Moving data in and out
| Tool | Pick it when |
|---|---|
| AzCopy | Command-line copies to, from or between accounts. Runs on Windows, Linux and macOS. Verbs: make, copy, sync, remove. |
| Storage Explorer | A desktop GUI to browse and manage data in existing accounts. It cannot create accounts. |
| Data Box Disk | Offline, up to about 35 TB on SSDs Microsoft sends you |
| Data Box | Offline, 120 TB or 525 TB in a rugged appliance (the older 80 TB model is being phased out) |
| Data Box Heavy | Retired. Use a 525 TB Data Box instead. |
| Import/Export | Offline using your own disks. Import to Blob or Files, export from Blob only. |
azcopy login azcopy make "https://stsskaiser.blob.core.windows.net/archive" azcopy copy "D:\\Archive\\*" "https://stsskaiser.blob.core.windows.net/archive" --recursive
Example
SS Kaiser must move 60 TB of historic CCTV footage, but its office line would take months. It orders a Data Box, copies the footage locally over a weekend, and ships it back. New footage then goes up nightly with azcopy sync.
Exam traps to remember
- Mounting a share needs port 445 open outbound.
- Agent and registration happen on the server. Sync service and sync group are created in Azure.
- A sync group has exactly one cloud endpoint.
- Import/Export can import to Files but export from Blob only.
Test yourself: 3 check questions and exam-style practice questions on this topic are in the AZ-104 Azure Administrator app.
Practise in the app