You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/storage/blobs/lifecycle-management-overview.md
+14-11Lines changed: 14 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Use Azure Storage lifecycle management policies to create automated
5
5
author: tamram
6
6
7
7
ms.author: tamram
8
-
ms.date: 08/18/2021
8
+
ms.date: 02/24/2022
9
9
ms.service: storage
10
10
ms.subservice: common
11
11
ms.topic: conceptual
@@ -20,8 +20,8 @@ Data sets have unique lifecycles. Early in the lifecycle, people access some dat
20
20
With the lifecycle management policy, you can:
21
21
22
22
- Transition blobs from cool to hot immediately when they are accessed, to optimize for performance.
23
-
- Transition blobs, blobversions, 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, blobversions, 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.
25
25
- Define rules to be run once per day at the storage account level.
26
26
- Apply rules to containers or to a subset of blobs, using name prefixes or [blob index tags](storage-manage-find-blobs.md) as filters.
27
27
@@ -80,7 +80,7 @@ The following sample rule filters the account to run the actions on objects that
80
80
- Tier blob to cool tier 30 days after last modification
81
81
- Tier blob to archive tier 90 days after last modification
82
82
- 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
84
84
85
85
```json
86
86
{
@@ -122,6 +122,9 @@ The following sample rule filters the account to run the actions on objects that
122
122
}
123
123
```
124
124
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
+
125
128
### Rule filters
126
129
127
130
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
140
143
141
144
Actions are applied to the filtered blobs when the run condition is met.
142
145
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.
144
147
145
-
| Action | Base Blob| Snapshot | Version
148
+
| Action | Current Version | Snapshot | Previous Versions
| tierToCool | Supported for `blockBlob`| Supported | Supported |
148
151
| enableAutoTierToHotFromCool | Supported for `blockBlob`| Not supported | Not supported |
@@ -152,13 +155,13 @@ Lifecycle management supports tiering and deletion of blobs, previous blob versi
152
155
> [!NOTE]
153
156
> 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`.
154
157
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.
156
159
157
160
| Action run condition | Condition value | Description |
158
161
|--|--|--|
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 |
162
165
163
166
## Examples of lifecycle policies
164
167
@@ -322,7 +325,7 @@ Some data should only be expired if explicitly marked for deletion. You can conf
322
325
}
323
326
```
324
327
325
-
### Manage versions
328
+
### Manage previous versions
326
329
327
330
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.
0 commit comments