Azure Blob Storage Lifecycle Management Is Now Generally Available.

Blob Storage lifecycle management automates blob tiering and retention with custom defined rules.

Microsoft has announced the general availability of Blob Storage lifecycle management, enabling you to automate blob tiering and retention with custom defined rules. The feature is available in all Azure public regions.
 
Azure Blob Storage lifecycle management provides a rich, rule-based policy in order to transition your data to the best access tier and to expire data at the end of its lifecycle.
The management policy helps you in transitioning blobs to a cooler storage tier such as hot to cool, hot to archive, or cool to archive in order to optimize for performance and cost; as well as delete blobs at the end of their lifecycles
  1. {  
  2. "rules": [  
  3. {  
  4. "name""ruleFoo",  
  5. "enabled"true,  
  6. "type""Lifecycle",  
  7. "definition": {  
  8. "filters": {  
  9. "blobTypes": [ "blockBlob" ],  
  10. "prefixMatch": [ "foo" ]  
  11. },  
  12. "actions": {  
  13. "baseBlob": {  
  14. "tierToCool": { "daysAfterModificationGreaterThan": 30 },  
  15. "tierToArchive": { "daysAfterModificationGreaterThan": 90 },  
  16. "delete": { "daysAfterModificationGreaterThan": 2555 }  
  17. },  
  18. "snapshot": {  
  19. "delete": { "daysAfterCreationGreaterThan": 90 }  
  20. }  
  21. }  
  22. }  
  23. }  
  24. ]  
  25. }  
Source: Microsoft
 
It defines up to 100 rules and executes those rules automatically once a day. Also, it applies rules to containers or specific subset of blobs, up to 10 prefixes per rule.
 
Lifecycle management has no fee or any charge. While customers will have to pay the regular operation cost for the “List Blobs” and “Set Blob Tier” API calls initiated by this feature.
 
To learn more, you can visit the official announcement here.