# AZ-104 Azure - Configuring Blob Lifecycle Management

[Lifecycle Management Concepts](https://learn.microsoft.com/en-us/azure/storage/blobs/lifecycle-management-overview?tabs=azure-portal)

Azure Blob Storage service feature that enables automation to manage lifecycle operations of blobs.

- Automate blob lifecycle: Easily manage blob life-cycles from frequent use to archive or deletion
- Move access tiers: Switch blobs between tiers to meet access or usage needs.
- Optimize cost: Save money by decreasing admin overhead and tiering blobs based on usage requirements.

![image.png](https://wiki.tinod.net/uploads/images/gallery/2024-03/scaled-1680-/KMkgOmiK9QZPRwFv-image.png)

Let's add random files to our container and add a lifecycle rule

![image.png](https://wiki.tinod.net/uploads/images/gallery/2024-03/scaled-1680-/7srk8HsCK7oJPwYu-image.png)

![image.png](https://wiki.tinod.net/uploads/images/gallery/2024-03/scaled-1680-/WsV09e1rCJXKgv6n-image.png)

![image.png](https://wiki.tinod.net/uploads/images/gallery/2024-03/scaled-1680-/LjHz5KyL9olf9xxS-image.png)

we can also specify a filter to modify only those inside our testcontainer/folder

[![image.png](https://wiki.tinod.net/uploads/images/gallery/2024-03/scaled-1680-/vXwipvAreuQ0VfAl-image.png)](https://wiki.tinod.net/uploads/images/gallery/2024-03/vXwipvAreuQ0VfAl-image.png)

Now after 30 days all our blobs will move from hot to cold.

- Storage accounts: Support GPv2 storage accounts and blob storage accounts.
- Types and Sub-types: Support block and append blobs and support sub-types such as based blobs snapshots and versions.
- Filtering: filter blobs in the rule using prefix or blob index matches.
- Scoping: Scope at the storage account or limit blobs with filters.
- If/Then Logic: Uses logic in lifecycle rules to move blobs through access tiers based on modification and access times.