Your profile

One profile for every MSDEVBUILD site. Only you can see it, and the site owner if you write in.

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 deleteVersioningSnapshots
Protects againstDeletes (blobs, containers, file shares)Overwrites and deletes of blobsChanges after a point in time you chose
AutomaticYes, once enabledYes, on every writeNo, you or a schedule (Azure Backup) take them
Restore withUndeleteCopy a previous version over the blobCopy from the snapshot, or Previous Versions on a share
Applies toBlobs, containers, file sharesBlock blobs (not with a hierarchical namespace)Blobs and file shares (up to 200 per share)
CostDeleted data billed until purgedEvery version is billedIncremental 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

3D Azure Storage for administrators: access, protection and data movement Delete, overwrite and wipe, then recover each one.

🖱️ Drag to rotate · scroll or pinch to zoom

Loading the 3D scene…
</> Embed

Embed this simulation

Free for trainers, teachers and bloggers. Paste this into your page:

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.

Read this tour as text
  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. 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.
  9. 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

Install MSDEVBUILD Azure

Free · no account · works offline

Save the whole course for offline ›

Hi, I’m your Nimbus

Your study buddy. Pick what we do next.

MSDEVBUILD · Multi-Stack Dev Build

Sign in to MSDEVBUILD

One account for Azure certifications and the blog: sign in here and you are signed in on both. Your XP, streak, practice deck and certificate stay in sync on every device. Optional: everything works without an account.