Skill 2.3.5
Configure snapshots and soft delete for Azure Files
Key Concepts
A share snapshot is a read-only, point-in-time copy of an entire file share. Snapshots are incremental, so only changed data is stored, and a share can have up to 200 snapshots. Individual files are restored from a snapshot in the portal, and Windows clients see snapshots as Previous Versions of files and folders. Snapshots are taken manually, with az storage share snapshot, or on a schedule by Azure Backup for Azure Files. A share cannot be deleted while it has snapshots unless the snapshots are deleted too.
Soft delete for file shares is set on the account's Data protection page with a retention period of 1 to 365 days. A deleted share, including its snapshots, can be restored with Undelete during that period. Soft delete works at share level, not for individual files; restoring individual deleted files needs a snapshot or a backup.