AZazure-blob-storage-lifecycle-management-now-supports-blob-versions-management: Azure Blob storage lifecycle management now supports blob versions management

Published . Last updated .

Microsoft Azure update AZazure-blob-storage-lifecycle-management-now-supports-blob-versions-management.

Azure update ID
AZazure-blob-storage-lifecycle-management-now-supports-blob-versions-management
Services
Archive Storage, Azure Blob Storage, Storage Accounts
Tags
Features

Release overview

Release status
Launched
General availability
October 2020
Product categories
Storage

Azure Blob storage lifecycle managment now supports blob versions. Microsoft recommends using blob versioning to maintain previous versions of a blob for data protection. When blob versioning is enabled for a storage account, Azure Storage automatically creates a new version of a blob each time that blob is modified or deleted. You can use lifecycle management to automatically transition old blob versions to a cooler storage tier (hot to cool, hot to archive, or cool to archive) or delete old blob versions to optimize for cost.

This sample policy rule below tiers previous versions within container activedata that are 90 days or older to cool tier, and deletes previous versions that are 365 days or older.

{
  "rules": 
    {
      "enabled": true,
      "name": "versionrule",
      "type": "Lifecycle",
      "definition": {
        "actions": {
          "version": {
            "tierToCool": {
              "daysAfterCreationGreaterThan": 90
            },
            "delete": {
              "daysAfterCreationGreaterThan": 365
            }
          }
        },
        "filters": {
          "blobTypes": [
            "blockBlob"
          ,
          "prefixMatch": 
            "activedata"
          
        }
      }
    }
  ]
}

Learn more about lifecycle management.

The lifecycle management feature is free of charge. Customers are charged the regular operation cost for the Set Blob Tier API calls. Delete operation is free. For more information about pricing, see Block Blob pricing.