[Sample Of June 18th] How to use blob snapshots to restore a blob storage in Microsoft Azure

 

Homepage image
RSS Feed

Sample Download : https://code.msdn.microsoft.com/How-to-use-blob-snapshots-b7b45eac

A snapshot of a blob has the same name as the base blob from which the snapshot is taken, with a Date Time value appended to indicate the time at which the snapshot was taken. For example, if the page blob URI is https://storagesample.core.blob.windows.net/mydrives/myvhd, the snapshot URI will be similar to https://storagesample.core.blob.windows.net/mydrives/myvhd?snapshot=\!2011-03-09T01:42:34.9360000Z. This value may be used to reference the snapshot for further operations. A blob's snapshots share its URI and are distinguished only by this Date Time value. In client library code, the blob's Snapshot property returns a Date Time value that uniquely identifies the snapshot relative to its base blob. You can use this value to perform further operations on the snapshot.

Once a snapshot has been created, it can be read, copied, or deleted, but not modified. Snapshots provide a way to back up a blob as it appears at a moment in time.

This code snippet shows how to use a snapshot of blob to restore a blob storage.

imageYou can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples on demand, manage the downloaded samples in a centralized place, and automatically be notified about sample updates. If it is the first time that you hear about Microsoft All-In-One Code Framework, please watch the introduction video on Microsoft Showcase, or read the introduction on our homepage https://1code.codeplex.com/.