Domain 2 β€” Module 5 of 5 100%
11 of 27 overall
Domain 2: Implement and Manage Storage Free ⏱ ~11 min read

Azure Files: Shares, Snapshots & Recovery

Azure Files gives you fully managed SMB file shares in the cloud β€” the Azure equivalent of your on-prem file server. Learn how to create file shares, configure snapshots, set up soft delete, and understand identity-based authentication.

What is Azure Files?

Simple explanation

Azure Files is a file server in the cloud that speaks the same language as your on-prem shares.

If you’ve managed Windows file servers with SMB shares (the kind you map as a network drive like \server\share), Azure Files does exactly the same thing β€” but without a server to maintain. Users map a drive letter, open files in Explorer, save documents, just like before. The difference? The data lives in Azure, backed by Microsoft’s infrastructure.

It also supports NFS for Linux workloads, making it useful for both Windows and Linux environments.

Creating and configuring file shares

Key settings when creating a file share:

SettingOptionsNotes
NameLowercase letters, numbers, hyphensMust be 3-63 characters
ProtocolSMB or NFSNFS requires Premium tier
Quota1 GB to 100 TiBSets maximum size; can be increased later
TierHot, Cool, Transaction Optimised (Standard) or PremiumAffects cost model
Access tierTransaction Optimised (default), Hot, CoolStandard tier only

Premium vs Standard file shares:

Standard vs Premium file shares
FeatureStandard File SharesPremium File Shares
Storage typeHDD (hard disk)SSD (solid state)
Account kindStorageV2 (general-purpose v2)FileStorage
Billing modelPay for what you useProvisioned (pay for capacity, get guaranteed IOPS)
Max share size100 TiB (with large file share enabled)100 TiB
IOPSUp to 20,000 (burst)Up to 100,000 (provisioned)
ProtocolsSMB onlySMB and NFS
RedundancyLRS, ZRS, GRS, GZRSLRS, ZRS
Real-world: TechCorp's file server migration

TechCorp Solutions migrated their on-prem file servers to Azure Files:

  • Before: 4 Windows Servers running SMB shares, backed up to tape weekly
  • After: 2 Azure File shares (one for active documents, one for archives)
  • Users map the same drive letters (Z: and Y:) but they point to Azure Files
  • Authentication via on-prem AD DS (hybrid identity with Entra Connect)
  • Azure File Sync keeps a hot cache on a local server for fast access

Result: no more patching file servers, no more tape backups, and users didn’t notice the change.

File share snapshots

Azure Files supports share snapshots β€” read-only, point-in-time copies of the entire file share.

Key facts:

  • Snapshots are taken at the share level (entire share, not individual files)
  • They’re incremental β€” only changes since the last snapshot are stored
  • Maximum 200 snapshots per file share
  • Snapshots can be browsed and individual files restored via Windows β€œPrevious Versions” tab
  • Deleting a share with snapshots requires deleting all snapshots first (or using β€œDelete share including snapshots”)

Soft delete for file shares

Soft delete retains deleted file shares for a configurable period (1-365 days), allowing recovery.

How it works:

  1. Enable soft delete on the storage account (applies to all file shares)
  2. Set retention period (e.g., 14 days)
  3. When a file share is deleted, it moves to a β€œsoft deleted” state
  4. During retention, the share can be undeleted (restored)
  5. After retention expires, the share is permanently deleted

Important: Soft delete protects the file share (the container), not individual files within it. If a user deletes a file from a share, soft delete won’t help β€” you need snapshots for that.

Exam tip: Snapshots vs Soft Delete

This distinction is commonly tested. Soft delete protects against share-level deletion (someone deletes the entire file share). Snapshots protect against file-level changes (someone overwrites or deletes a specific file within the share). For maximum protection, enable both.

Question

What is the difference between soft delete and snapshots in Azure Files?

Click or press Enter to reveal answer

Answer

Soft delete protects against accidental deletion of the entire file share (retains deleted shares for N days). Snapshots protect against file-level changes by creating point-in-time copies that allow restoring individual files. They serve different purposes and both should be enabled.

Click to flip back

Question

What protocol does Azure Files support, and which tier is required for NFS?

Click or press Enter to reveal answer

Answer

Azure Files supports SMB (2.1, 3.0, 3.1.1) and NFS (4.1). NFS requires Premium file shares (FileStorage account type with SSD storage). Standard file shares support SMB only.

Click to flip back

Question

How many snapshots can a single Azure file share have?

Click or press Enter to reveal answer

Answer

A maximum of 200 share snapshots per file share. Snapshots are incremental β€” they only store data that changed since the last snapshot, making them space-efficient.

Click to flip back

Knowledge check

Knowledge Check

A user at TechCorp Solutions accidentally deleted an important spreadsheet from an Azure File share yesterday. Soft delete is enabled on the storage account. Can Alex recover the file?

Knowledge Check

Meridian Financial needs a high-performance file share for their database log files. The share must support both Windows (SMB) and Linux (NFS) clients with guaranteed IOPS. What should Alex provision?