Bring Azure Blob Objects Back To Life

Nowadays, there are many applications which are utilizing Azure Blob Storage for reading and writing objects. Looking at that, it’s quite common that these objects may get deleted accidentally due to the user’s negligence or application behavior. So, my writeup is around this topic wherein we will see, how we can bring our deleted blob objects back to life.
 
The lifecycle of blob storage is managed by a very well-known concept called Versioning. Versioning deals with the state - when an object was created, when was it modified or when was it deleted.
 
Let’s quickly have a look at how can we perform versioning in action.
 
Open the Azure portal using this.
 
Click on Storage accounts. If it is not visible on the home page, you can also use search bar to navigate through it as show below,
 
Bring Azure Blob Objects Back To Life
 
Select the storage account and click on it to open the next page. Your next page should look like the one shown below,
 
Bring Azure Blob Objects Back To Life
 
Next is to click on Data Protection and turn on versioning as shown below and click on save,
 
Bring Azure Blob Objects Back To Life
 
Once data is saved, click on Containers, under Blob service and select the blob container as shown below,
 
Bring Azure Blob Objects Back To Life
 
Next we need to enable Show deleted blobs option,
 
Bring Azure Blob Objects Back To Life
 
Now try to delete one of the blob object and you will notice that a red mark is shown next to object as shown below,
 
Bring Azure Blob Objects Back To Life
 
In order to recover the deleted object, click on Deleted status and a new blade will open up. From there select Versions and you will see all the deleted versions are listed over there. Select the version which you want to recover and click on Make current version as shown below,
 
Bring Azure Blob Objects Back To Life
 
Now go back to blob and you will see that the deleted object is recovered and is back in Active state, which means object is ready to use now,
 
Bring Azure Blob Objects Back To Life
 
If you like to view this in action, you can also have a look at my channel here. Hope you enjoyed recovering deleted blob objects. Happy learning!


Similar Articles