Open In App

Microsoft Azure – Automatically Manage Azure Blobs Lifecycles

Improve
Improve
Like Article
Like
Save
Share
Report

In this article, we will look into how to automatically manage Azure Blobs lifecycles. Azure Blob Storage offers different access tiers to reduce your storage costs. A blob in the hot tier costs the most and can be accessed very fast, while a blob in the archive tier is cheaper and is slower.

Implementation:

Follow the below steps to automatically manage Azure Blobs lifecycles:

  • Let’s use Lifecycle Management to automatically move blobs between access tiers. Here in the Azure Portal, we have a general-purpose Azure Storage account, and there is the Lifecycle Management. 

  • We can create a new rule here.

  •  First, we need to give the rule a name, and now we will select to only apply this rule to blobs that adhere to a filter that we define later, and we only want “Block blobs”. We will leave this to “Base blobs”.But, as you will see, we can also include snapshots and versions of blobs. 

  • Next, now for the rule. If the base blobs were last modified more than 20 days ago, then we will move the blobs to cool storage. As you will see, we can also delete them if we want. 

  • Now, the filter. We only want this rule to apply to blobs in the logs container. Let’s add the rule and there it is. 

Azure Blob Storage access tiers are great to reduce your storage costs. We just learned how easy it is to use Azure Blob Storage Lifecycle Management to automatically move blobs to their appropriate access tiers based on their usage. 


Last Updated : 30 Mar, 2023
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads