Last Update: Sep 04, 2024 | Published: Jul 17, 2018
I this post, I will talk about the new automatic management of tiered Azure blob storage by a new preview Azure feature called Lifecycle Management.
Azure’s blob storage allows us to move individual blobs (files) between three storage tiers in the same storage account (Hot Blob, Cool Blob, or General Purpose v2/Gpv2), optimizing the cost of our storage based on the frequency of usage:
By default, blob tiering is something that is not done automatically for you by Azure. You will either need to:
Microsoft has launched a limited preview for a new feature called Lifecycle Management in General Purpose v2 (GPv2) storage accounts:
You can request access by running this AzureRM PowerShell command:
Register-AzureRmProviderFeature -FeatureName DLM -ProviderNamespace Microsoft.Storage
You can check for acceptance by running this AzureRM PowerShell command:
Get-AzureRmProviderFeature -FeatureName DLM -ProviderNamespace Microsoft.Storage
Once accepted, you can deploy a GPv2 storage account in one of the valid regions and start testing the feature. With this feature, you can create policies on a per-storage account basis to automate the movement or deletion of blobs using a set of rules. These rules are made up of a number of components.
Filters define what blobs are affected by a rule:
Actions specify what to do to blobs identified by a filter:
In the preview, a limited set of action conditions are included; these define what criteria a filtered blob must meet before the action is executed:
Microsoft has shared a number of examples in its documentation of Azure blob Lifecycle Management.
If Microsoft adds a daysAfterLastAccessGreater than action condition, then I think Lifecycle Management will offer an excellent solution for reducing the costs of Azure blob storage for those customers with huge capacities of data.