Compare
Blob Soft Delete vs Versioning vs Snapshots
30-second answer
Soft delete keeps deleted blobs and containers for 1 to 365 days. Versioning automatically keeps every previous version of a blob when it changes. Snapshots are read-only copies you take on purpose, of a blob or of a whole Azure Files share. Microsoft recommends soft delete plus versioning for blobs.
Simulate it »Side by side
↔ Swipe the table to see every column.
| Soft delete | Versioning | Snapshots | |
|---|---|---|---|
| Protects against | Deletes (blobs, containers, file shares) | Overwrites and deletes of blobs | Changes after a point in time you chose |
| Automatic | Yes, once enabled | Yes, on every write | No, you or a schedule (Azure Backup) take them |
| Restore with | Undelete | Copy a previous version over the blob | Copy from the snapshot, or Previous Versions on a share |
| Applies to | Blobs, containers, file shares | Block blobs (not with a hierarchical namespace) | Blobs and file shares (up to 200 per share) |
| Cost | Deleted data billed until purged | Every version is billed | Incremental changes billed |
Prices are illustrative pay-as-you-go list prices converted at approximate rates, for "price feel" only. Check the Azure pricing calculator for real quotes.
Which one should I pick?
Soft delete
Pick it when you want a safety net for accidental deletes
Versioning
Pick it when people or apps overwrite blobs and you need older content back
Snapshots
Pick it when you need a known-good copy before a change, or point-in-time copies of a file share
Simulate it
🖱️ Drag to rotate · scroll or pinch to zoom
Undo buttons: soft delete, versioning and snapshots
Blob soft delete and container soft delete keep deleted items for 1 to 365 days. Versioning keeps every previous version of a blob. For Azure Files, share snapshots are read-only point-in-time copies and share soft delete keeps a deleted share.
🤔 What happens if…
Read this tour as text
- The front door: the storage firewall. Every account has a public endpoint that accepts all networks by default. Set the default action to Deny and only what you list gets in: virtual network rules (subnets with the Microsoft.Storage service endpoint), IP rules (public addresses only) and trusted Azure services if you tick the exception.
- Three ways in, plus one for file shares. Callers prove who they are with an account key (full control), a SAS (limited rights for limited time) or a Microsoft Entra ID token checked against RBAC data roles. For SMB file shares, users bring a Kerberos ticket from AD DS, Microsoft Entra Domain Services or Microsoft Entra Kerberos.
- SAS tokens and stored access policies. A service SAS can point at a stored access policy on the container (up to 5 per container). The policy holds the permissions and expiry, so deleting or editing it revokes every SAS that names it. An ad hoc SAS can only be revoked by regenerating the key that signed it.
- Rotate access keys. Each account has two keys so you can rotate without downtime: move apps to key2, regenerate key1, and next time do the reverse. A key expiration policy flags old keys. Regenerating a key kills every SAS signed with it.
- Encryption at rest. Azure Storage always encrypts data with AES-256. By default Microsoft manages the key. With a customer-managed key in Key Vault (soft delete and purge protection on), the account’s managed identity wraps and unwraps its data key with your key, and you can revoke it.
- Redundancy and a region outage. LRS keeps 3 copies in one datacenter, ZRS spreads 3 across availability zones, GRS adds an async copy in the paired region and GZRS combines both. RA- versions let you read the secondary. A customer-managed failover promotes the secondary when the primary region is down.
- Moving data: AzCopy and object replication. AzCopy moves files in parallel from the command line, signed in with Microsoft Entra ID (and a Storage Blob Data role) or with a SAS. Storage Explorer does the same with a GUI. Object replication keeps copying new block blobs to another account by itself.
- Access tiers and lifecycle management. Blobs sit in Hot, Cool (30-day minimum), Cold (90 days) or Archive (180 days, offline). A lifecycle management rule moves or deletes blobs by age or last access, about once a day. Reading an archived blob means rehydrating it first.
- Undo buttons: soft delete, versioning and snapshots. Blob soft delete and container soft delete keep deleted items for 1 to 365 days. Versioning keeps every previous version of a blob. For Azure Files, share snapshots are read-only point-in-time copies and share soft delete keeps a deleted share.
Questions people ask
Does soft delete protect against deleting the storage account?
No. Use a CanNotDelete resource lock on the account for that.
Do versions pile up forever?
Yes, unless a lifecycle rule deletes versions older than a set number of days.
Learn each one properly
More comparisons
- Owner vs Contributor vs Reader vs User Access Administrator
- Azure RBAC Roles vs Microsoft Entra Roles
- Storage Account Key vs SAS vs Microsoft Entra ID
- ARM JSON Templates vs Bicep Files
- Availability Set vs Availability Zones vs Flexible Scale Set
- Container Instances vs Container Apps vs App Service
- App Service scale up vs scale out
- Service Endpoint vs Private Endpoint
- NSG vs ASG vs Route Table
- Recovery Services Vault vs Backup Vault
- Azure Backup vs Azure Site Recovery