Creating and using a blob snapshot

The Azure Blob service supports the creation of read-only snapshots of a blob. A storage account is billed only for those blocks and pages in a snapshot that differ from those in the underlying blob. A blob snapshot is useful in providing a backup for a blob, as it can be used to reset the blob to an earlier state. Indeed, multiple snapshots can be made over time, allowing a historic record to be kept of the changes made to a blob.

A blob snapshot is created using the CloudBlockBlob.CreateSnapshot() method. Each snapshot of a blob is distinguished by its creation time, which must be provided to operations that are accessing the snapshot. A snapshot created at a particular datetime is addressed by appending a ...

Get Microsoft Azure Development Cookbook Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.