Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft Azure Storage Essentials

You're reading from   Microsoft Azure Storage Essentials Harness the power of Microsoft Azure services to build efficient cloud solutions

Arrow left icon
Product type Paperback
Published in Aug 2015
Publisher
ISBN-13 9781784396237
Length 126 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Chukri A Soueidi Chukri A Soueidi
Author Profile Icon Chukri A Soueidi
Chukri A Soueidi
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. An Introduction to Microsoft Azure Storage Services 2. Developing Against Storage FREE CHAPTER 3. Working with Blobs 4. Working with Tables 5. Designing Scalable and Performant Tables 6. Working with Queues 7. Working with the Azure File Service 8. Transient Fault Handling and Analytics Index

Blob snapshots

One of the many convenient features of the blob storage service is the ability to create snapshots of the blobs that can be used for tracking changes done on a blob over different periods of time. Snapshots provide an automatic and free versioning mechanism. They work by saving any changes done on the blob on a separate snapshot along with its timestamp. Using snapshots, you can rollback any changes done on a blob to a specific point in time or even to the original blob.

The following is an example of how to get a blob by specifying a snapshot value (provided that the container has a public access level):

http://<accountname>.blob.core.windows.net/<container>/<blob>?snapshot=timestamp

We will demonstrate how to create a snapshot by using the Azure Client Library. First, let us create a blob:

CloudBlockBlob blob = container.GetBlockBlobReference("hello.txt");
blob.UploadText("Hello world!");

In order to create a snapshot, we need to reference...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image