Azure Files, File Sync and moving data

AZ-104 Azure AdministratorStorageAbout 25 minutesBy Cloud Hands On

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

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.

TierStorageUse
PremiumSSD, in a FileStorage accountDatabases, high IOPS apps, NFS shares
Transaction optimisedHDDBusy general shares
HotHDDTeam shares and File Sync
CoolHDDOnline 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:

  1. Enable an identity source on the account: on-premises AD DS, Entra Domain Services, or Entra Kerberos for hybrid users.
  2. Assign share-level permissions with Azure RBAC: Storage File Data SMB Share Reader, Contributor or Elevated Contributor.
  3. 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.

A Storage Sync Service with one sync group containing a cloud endpoint and two server endpoints in different offices Storage Sync Service Sync group: Finance Cloud endpoint Hull serverServer endpoint D:\\Finance Leeds serverServer endpoint E:\\Finance Each server has the File Sync agent installed and is registered
One cloud endpoint per sync group. Many servers can join, but each server has one endpoint per group.
  1. In Azure: create a Storage Sync Service.
  2. On the server: install the File Sync agent and register the server.
  3. In Azure: create a sync group, which also creates its cloud endpoint.
  4. 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

ToolPick it when
AzCopyCommand-line copies to, from or between accounts. Runs on Windows, Linux and macOS. Verbs: make, copy, sync, remove.
Storage ExplorerA desktop GUI to browse and manage data in existing accounts. It cannot create accounts.
Data Box DiskOffline, up to about 35 TB on SSDs Microsoft sends you
Data BoxOffline, 120 TB or 525 TB in a rugged appliance (the older 80 TB model is being phased out)
Data Box HeavyRetired. Use a 525 TB Data Box instead.
Import/ExportOffline 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

Keep going