Home › Studies › AZ-104 › Storage › Azure Files

Azure Files

SMB and NFS · billing models · identity-based access · share-level roles · snapshots · soft delete

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

Protocols and billing models

ModelAccount kind and SKUMediaNotes
Provisioned v2FileStorage: PremiumV2_LRS/ZRS, StandardV2_LRS/ZRS/GRS/GZRSSSD and HDDRecommended for new deployments. Share size 32 to 262,144 GiB.
Provisioned v1FileStorage: Premium_LRS/ZRSSSD onlyShare size 100 to 102,400 GiB.
Pay-as-you-goStorageV2: Standard_LRS/ZRS/GRS/GZRSHDD, SMB onlyAccess tier: Transaction optimized (default), Hot or Cool.

Identity-based access over SMB

Identity sourceUse whenKey points
On-premises AD DSClients can reach a domain controller; identities synced to Entra IDDomain-join the storage account with Join-AzStorageAccount (AzFilesHybrid, PowerShell 5.1, domain-joined machine). Only hybrid identities can be authorized.
Microsoft Entra Domain ServicesYou use a managed domainEntra Domain Services must be enabled and the VMs joined to the managed domain. Enable with --enable-files-aadds.
Microsoft Entra KerberosHybrid or cloud-only users on Entra-joined or hybrid-joined Windows clients, no line of sight to a DCEnable with --enable-files-aadkerb true, grant admin consent to the generated app, exclude it from MFA Conditional Access.

Share-level permissions

RoleGives
Storage File Data SMB Share ReaderRead
Storage File Data SMB Share ContributorRead, write, delete
Storage File Data SMB Share Elevated ContributorRead, write, delete, and modify ACLs
Storage File Data Privileged Reader / ContributorOverride ACLs

Snapshots and soft delete

Share snapshotShare soft delete
ProtectsFiles: restore an overwritten or deleted fileA deleted share, including its snapshots
ScopePer share; read-only, point-in-time, incrementalStorage account setting; whole shares, not single files
LimitsUp to 200 per share; keep up to 10 yearsRetention 1 to 365 days, default 7; on by default for new accounts
Doesn't protectShare or account deletion: deleting a share deletes its snapshotsIndividual file deletes

CLI and PowerShell

TaskAzure CLIPowerShell
Create a provisioned shareaz storage share-rm create --resource-group <rg> --storage-account <n> --name <share> --quota 1024 --enabled-protocols SMBNew-AzRmStorageShare ... -QuotaGiB 1024 -EnabledProtocol SMB
Create a snapshotaz storage share snapshot --name <share> --account-name <n>New-AzRmStorageShare ... -Snapshot
Delete share and snapshotsaz storage share delete --name <share> --account-name <n> --delete-snapshots includeRemove-AzRmStorageShare ... -Include Snapshots
Enable soft deleteaz storage account file-service-properties update -g <rg> --account-name <n> --enable-delete-retention true --delete-retention-days 7Update-AzStorageFileServiceProperty ... -EnableShareDeleteRetentionPolicy $true -ShareRetentionDays 7
Restore a deleted shareaz storage share-rm restore --name <share> --deleted-version <v> -g <rg> --storage-account <n>Restore-AzRmStorageShare ... -DeletedShareVersion <v>
Enable Entra Kerberosaz storage account update --name <n> --resource-group <rg> --enable-files-aadkerb trueSet-AzStorageAccount ... -EnableAzureActiveDirectoryKerberosForFile $true
Default share permissionaz storage account update --name <n> --resource-group <rg> --default-share-permission StorageFileDataSmbShareContributorSet-AzStorageAccount ... -DefaultSharePermission StorageFileDataSmbShareContributor

Exam Tips

Tick each tip once you can answer it without looking.

“Linux servers need an NFS file share” → SSD (premium) share in a FileStorage account. Trap: standard HDD shares: NFS is SSD only.

“Convert an HDD share to SSD” → Not possible in place: create a new share and copy the data. Trap: a tier setting on the share.

“On-premises AD users must use domain credentials on a file share” → AD DS authentication, with identities synced to Entra ID. Trap: Entra Domain Services, which needs a managed domain.

“Entra-joined Windows 11 clients, no line of sight to a DC, hybrid identities” → Microsoft Entra Kerberos. Trap: AD DS, which needs DC connectivity.

“Two identity sources on one account (AD DS and Entra Kerberos)” → Not allowed: one identity source per account. Trap: a per-share setting.

“Entra Kerberos mount fails with error 1327” → Exclude the storage account app from MFA Conditional Access. Trap: opening port 445.

“After enabling Entra Kerberos, what must an admin do in Entra?” → Grant admin consent to the [Storage Account] ...file.core.windows.net app. Trap: assigning Global Administrator to users.

“Read, write and delete files but not change ACLs” → Storage File Data SMB Share Contributor. Trap: Elevated Contributor adds the right to modify ACLs.

“Admin must set NTFS ACLs on the share” → Storage File Data SMB Share Elevated Contributor. Trap: Share Contributor.

“AD DS isn't synced to Entra but users still need access” → Default share-level permission for all authenticated identities (default is None). Trap: assigning RBAC roles to AD groups that don't exist in Entra.

“User has Reader on the share; default share permission is Elevated Contributor” → The user gets the higher permission. Trap: the most restrictive one.

“Mounted with the storage account key and ACLs seem ignored” → Key mount is admin-level access. Trap: ACLs always apply.

“Secure NFS access” → Private endpoint or service endpoint. Trap: AD DS authentication: NFS has no identity-based auth.

“File share deleted by mistake” → Soft delete: undelete the share (on by default, 7 days). Trap: restoring from a snapshot: snapshots are deleted with the share.

“User overwrote a file in the share” → Restore from a share snapshot (or Azure Backup). Trap: soft delete, which works at share level only.

“Delete a share that has snapshots” → Delete the snapshots with it (--delete-snapshots include). Trap: deleting the share alone.

“Permanently delete a soft-deleted share before retention ends” → Undelete, disable soft delete, delete again. Trap: waiting or looking for a purge command.

“SMB mount fails from on-premises over the internet” → Port 445 is often blocked: use VPN or ExpressRoute with a private endpoint. Trap: opening port 2049, which is NFS.

Sources

Checked against Microsoft Learn on November 13, 2026.

← AzCopy & Storage ExplorerBlob Tiers & Lifecycle →