The Step by Step Data Retention Policy in Azure Blob Storage

The lifecycle management policy lets you:
- Transition blobs to a cooler storage tier (hot to cool, hot to archive, or cool to archive) to optimize for performance and cost
- Delete blobs at the end of their lifecycles
- Define rules to be run once per day at the storage account level
- Apply rules to containers or a subset of blobs
Log in to the Azure portal

Create a storage account. – location – Standard performance – StorageV2 – Hot Access tier – Hierarchical namespace disabled

Click Networking

Click Data Protection

Click Advanced
Make sure Hierarchical namespace is Disable

Click – Tags -> Click review –
Click Create

Create a test container. – Populate it with the sample file.

Click Create

Upload any file and Access tire is HOT

Move blob from hot to cool manually.

Automate the Configure Lifecycle management. – Configure hot to cool storage for 30 days. – Configure cool to archive storage for 180 days – Configure Delete 360 days
Under Blob Services – Select – Lifecycle Management – Click Add

Click Filter Set

Click Browser – Select the Container
What do you want to add
- The entire Container
- Virtual Folders within selected Container
Select – The entire Container

Click Add

The newly Created Lifecycle policy show

The Code View
