Skip to content
David Alzamendi Data Enthusiast

Point-In-Time Restore for Blob Storage Accounts

Point-in-time Recovery for Blob Storage Accounts

Are you trying to restore a corrupted file or a previous version of a file in Azure Blob Storage Accounts? Now, you can do it using Point-in-time Restore for Blobs. In this blog post, I’ll explain how to enable and configure this feature so you can start using it. 

In one of my previous articles, I explored how to enable soft deletes and restore deleted files. With point-in-time restore you can: 

  • Restore previous versions of a blob 
  • Restore deleted files 

A few key points to take into account: 

  • This feature is available for a blob storage account when using cool and hot tier access files, but not archive (click here to know more about the access tiers).  
  • There are currently some limitations that are available in the Microsoft documentation.  
  • Having different versions for your files will increase your on-going cost to store them. 

Enable point-in-time restore for blobs 

To begin, in your Azure Storage Account, go to Data Protection and turn on the following option: 

Azure Storage Account Data Protection

Next, when you enable point-in-time restore, you can see that other options are enabled for you. These are pre-requisites. 

Enable point-in-time restore for blobs
  1. Maximum period of time (in days) for recovering previous versions 
  1. Maximum period of time (in days) for recovering deleted files 

Now, save the new configuration. 

Enable point-in-time restore for blobs

Restore blob using point-in-time restore 

Next, let’s go and test it. We are going to try to restore a previous version of a file that’s been modified. 

For this test, we’ll use a simple file with some user names inside: 

Restore blob using point-in-time restore using simple file test

For the next step, you’ll delete some users and upload the file again to replace it. 

Delete some users and upload the file again
Restore blob using point-in-time restore

You can find the version of the file in the Azure portal or with APIs. 

Find the file in the Azure portal or with APIs

This opens a new window with all the versions that are available to restore. 

Make current version point-in-time restore

Then, after you restore it, the old version will become available. 

Point-in-time restore successfully updated current version

Once you have restored that version, it becomes available again. 

Restore blob using point-in-time restore

Summary 

In this article, you learned how to restore previous versions of a blob storage account using point-in-time restore. You didn’t need to write a single line of code! 

Final Thoughts 

Every time that I work with Storage Accounts, I take advantage of the latest available features. Data recovering scenarios and point-in-time restore play a key role to help mitigate any issues with deletions, data integrity issues or file versioning. 

What’s Next?

During the next few weeks, we will explore more features and services within the Azure offering.    

Please follow me on  Twitter at TechTalkCorner for more articles, insights, and tech talk! 

All 8 guides
Storage

Create an Azure Data Lake

A step by step look at how to create an Azure Data Lake using the Azure Portal. Configure and set up your Data Lake.

3 min read

Azure Storage Accounts

Azure Storage Object Replication

how to easily replicate objects between storage accounts in the same or different regions. This decreases the read latency from applications, users or any workload that requires reading files from a different region.

3 min read

Questions or comments?

Leave a comment below

Your email address isn't published.

For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

I agree to these terms.