Case Scenario
As Azure administrator, once of the tasks can be assigned to you is identifying all of the blobs that are not modified for the last 100 days and delete them and we need to automate this task to run automatically on Azure Storage
Introduction
Azure Storage services are one of the most important Azure services that many other services depend on it that’s why we should keep monitoring the size of it to reduce the cost, and of the things that we should take care about it, the blobs that are not used from a long time like our case scenario, that’s why Microsoft Azure provided us something called Azure Blob storage lifecycle

What is Azure Blob Storage Lifecycle
Azure Blob Storage Lifecycle management it is a role-based policy for Azure blob storage and this feature or service allow us to do many things Such as:
- Moving Blobs to Storage tiers (Hot to Cool, Cool to Archive or Hot to archive) and this option should be used to optimize the cost and performance of your blobs
- Deleting the unused or non-modified blobs by the end of their lifecycle
- You can define a role on your Azure Storage to run daily if you need
- Applying for this role on Blob Containers or subset from the containers
Azure Storage Resources and information
- For Azure Storage, we have General Purpose v2 (GPv2) and General Purpose (GPv1) but the Azure Blob Storage Lifecycle Management is available only on GPv2 and you can upgrade from GPv1 to GPv2
- Managing and implementing Azure storage
- Microsoft Azure Storage Kind and Architecture
- Create Storage Account Using PowerShell and CLI Command
- Azure Storage Account and Log Analytics
- Azure Storage Account Monitoring Services
- Sync your local files with Azure Storage Sync Service
- Copy Files to or from Azure Storage using Azcopy
- Azure Storage Geo-Replication
- Azure Date Transfer Solutions
- Microsoft Azure Storage Permission
How to Configure Azure Blob Storage Lifecycle Management
The steps of the configuration are very easy you can check this Microsoft article or you can check below GIF demo file
