Skill 2.3.6

Configure blob lifecycle management

Key Concepts

A lifecycle management policy is a JSON collection of up to 100 rules. Each rule has filters (blob types, such as blockBlob, and name prefixes such as logs/, or blob index tags) and actions for the base blob, previous versions and snapshots: tierToCool, tierToCold, tierToArchive, enableAutoTierToHotFromCool and delete. Conditions use the number of days since modification, creation or last access, such as daysAfterModificationGreaterThan: 30.

Conditions based on daysAfterLastAccessTimeGreaterThan require last access time tracking to be enabled. The policy runs once a day, and new or changed rules can take up to 24 hours to start applying. Lifecycle management is supported in general-purpose v2 and premium block blob accounts. The portal offers a list view with a rule wizard and a code view for the JSON.