Skip to content

Commit 9f086c8

Browse files
authored
Merge pull request #186392 from yashluna/patch-24
Update lifecycle-management-overview.md
2 parents 21d15ef + 51cce9d commit 9f086c8

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

articles/storage/blobs/lifecycle-management-overview.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Use Azure Storage lifecycle management policies to create automated
55
author: tamram
66

77
ms.author: tamram
8-
ms.date: 08/18/2021
8+
ms.date: 02/24/2022
99
ms.service: storage
1010
ms.subservice: common
1111
ms.topic: conceptual
@@ -20,8 +20,8 @@ Data sets have unique lifecycles. Early in the lifecycle, people access some dat
2020
With the lifecycle management policy, you can:
2121

2222
- Transition blobs from cool to hot immediately when they are accessed, to optimize for performance.
23-
- Transition blobs, blob versions, and blob snapshots to a cooler storage tier if these objects have not been accessed or modified for a period of time, to optimize for cost. In this scenario, the lifecycle management policy can move objects from hot to cool, from hot to archive, or from cool to archive.
24-
- Delete blobs, blob versions, and blob snapshots at the end of their lifecycles.
23+
- Transition current versions of a blob, previous versions of a blob, or blob snapshots to a cooler storage tier if these objects have not been accessed or modified for a period of time, to optimize for cost. In this scenario, the lifecycle management policy can move objects from hot to cool, from hot to archive, or from cool to archive.
24+
- Delete current versions of a blob, previous versions of a blob, or blob snapshots at the end of their lifecycles.
2525
- Define rules to be run once per day at the storage account level.
2626
- Apply rules to containers or to a subset of blobs, using name prefixes or [blob index tags](storage-manage-find-blobs.md) as filters.
2727

@@ -80,7 +80,7 @@ The following sample rule filters the account to run the actions on objects that
8080
- Tier blob to cool tier 30 days after last modification
8181
- Tier blob to archive tier 90 days after last modification
8282
- Delete blob 2,555 days (seven years) after last modification
83-
- Delete previous blob versions 90 days after creation
83+
- Delete previous versions 90 days after creation
8484

8585
```json
8686
{
@@ -122,6 +122,9 @@ The following sample rule filters the account to run the actions on objects that
122122
}
123123
```
124124

125+
> [!NOTE]
126+
> The **baseBlob** element in a lifecycle management policy refers to the current version of a blob. The **version** element refers to a previous version.
127+
125128
### Rule filters
126129

127130
Filters limit rule actions to a subset of blobs within the storage account. If more than one filter is defined, a logical `AND` runs on all filters.
@@ -140,9 +143,9 @@ To learn more about the blob index feature together with known issues and limita
140143

141144
Actions are applied to the filtered blobs when the run condition is met.
142145

143-
Lifecycle management supports tiering and deletion of blobs, previous blob versions, and blob snapshots. Define at least one action for each rule on base blobs, previous blob versions, or blob snapshots.
146+
Lifecycle management supports tiering and deletion of current versions, previous versions, and blob snapshots. Define at least one action for each rule.
144147

145-
| Action | Base Blob | Snapshot | Version
148+
| Action | Current Version | Snapshot | Previous Versions
146149
|-----------------------------|--------------------------------------------|---------------|---------------|
147150
| tierToCool | Supported for `blockBlob` | Supported | Supported |
148151
| enableAutoTierToHotFromCool | Supported for `blockBlob` | Not supported | Not supported |
@@ -152,13 +155,13 @@ Lifecycle management supports tiering and deletion of blobs, previous blob versi
152155
> [!NOTE]
153156
> If you define more than one action on the same blob, lifecycle management applies the least expensive action to the blob. For example, action `delete` is cheaper than action `tierToArchive`. Action `tierToArchive` is cheaper than action `tierToCool`.
154157
155-
The run conditions are based on age. Base blobs use the last modified time, blob versions use the version creation time, and blob snapshots use the snapshot creation time to track age.
158+
The run conditions are based on age. Current versions use the last modified time or last access time, previous versions use the version creation time, and blob snapshots use the snapshot creation time to track age.
156159

157160
| Action run condition | Condition value | Description |
158161
|--|--|--|
159-
| daysAfterModificationGreaterThan | Integer value indicating the age in days | The condition for base blob actions |
160-
| daysAfterCreationGreaterThan | Integer value indicating the age in days | The condition for blob version and blob snapshot actions |
161-
| daysAfterLastAccessTimeGreaterThan | Integer value indicating the age in days | The condition for base blob actions when access tracking is enabled |
162+
| daysAfterModificationGreaterThan | Integer value indicating the age in days | The condition for actions on a current version of a blob |
163+
| daysAfterCreationGreaterThan | Integer value indicating the age in days | The condition for actions on a previous version of a blob or a blob snapshot |
164+
| daysAfterLastAccessTimeGreaterThan | Integer value indicating the age in days | The condition for a current version of a blob when access tracking is enabled |
162165

163166
## Examples of lifecycle policies
164167

@@ -322,7 +325,7 @@ Some data should only be expired if explicitly marked for deletion. You can conf
322325
}
323326
```
324327

325-
### Manage versions
328+
### Manage previous versions
326329

327330
For data that is modified and accessed regularly throughout its lifetime, you can enable blob storage versioning to automatically maintain previous versions of an object. You can create a policy to tier or delete previous versions. The version age is determined by evaluating the version creation time. This policy rule tiers previous versions within container `activedata` that are 90 days or older after version creation to cool tier, and deletes previous versions that are 365 days or older.
328331

0 commit comments

Comments
 (0)