Skip to content

Commit 0148824

Browse files
Merge pull request #222183 from jimmart-dev/jammart-lcm-last-accessed-time-clarify
blobs-lifecycle-mgmt-clarify last accessed time behavior
2 parents a0171b2 + 15300d3 commit 0148824

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

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

Lines changed: 6 additions & 2 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: normesta
66

77
ms.author: normesta
8-
ms.date: 09/29/2022
8+
ms.date: 12/21/2022
99
ms.service: storage
1010
ms.subservice: common
1111
ms.topic: conceptual
@@ -170,9 +170,11 @@ The run conditions are based on age. Current versions use the last modified time
170170
|--|--|--|
171171
| daysAfterModificationGreaterThan | Integer value indicating the age in days | The condition for actions on a current version of a blob |
172172
| daysAfterCreationGreaterThan | Integer value indicating the age in days | The condition for actions on a previous version of a blob or a blob snapshot |
173-
| daysAfterLastAccessTimeGreaterThan | Integer value indicating the age in days | The condition for a current version of a blob when access tracking is enabled |
173+
| daysAfterLastAccessTimeGreaterThan<sup>1</sup> | Integer value indicating the age in days | The condition for a current version of a blob when access tracking is enabled |
174174
| daysAfterLastTierChangeGreaterThan | Integer value indicating the age in days after last blob tier change time | This condition applies only to `tierToArchive` actions and can be used only with the `daysAfterModificationGreaterThan` condition. |
175175

176+
<sup>1</sup> If [last access time tracking](#move-data-based-on-last-accessed-time) is not enabled for a blob, **daysAfterLastAccessTimeGreaterThan** uses the date the lifecycle policy was enabled instead of the `LastAccessTime` property of the blob.
177+
176178
## Examples of lifecycle policies
177179

178180
The following examples demonstrate how to address common scenarios with lifecycle policy rules.
@@ -213,6 +215,8 @@ When last access time tracking is enabled, the blob property called `LastAccessT
213215

214216
To minimize the effect on read access latency, only the first read of the last 24 hours updates the last access time. Subsequent reads in the same 24-hour period don't update the last access time. If a blob is modified between reads, the last access time is the more recent of the two values.
215217

218+
If last access time tracking is enabled for a blob, lifecycle management uses `LastAccessTime` to determine whether the run condition **daysAfterLastAccessTimeGreaterThan** is met. If last access time tracking is not enabled, it uses the date the lifecycle policy was enabled instead of `LastAccessTime`.
219+
216220
In the following example, blobs are moved to cool storage if they haven't been accessed for 30 days. The `enableAutoTierToHotFromCool` property is a Boolean value that indicates whether a blob should automatically be tiered from cool back to hot if it's accessed again after being tiered to cool.
217221

218222
```json

articles/storage/blobs/lifecycle-management-policy-configure.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Configure a lifecycle management policy to automatically move data
55
author: normesta
66

77
ms.author: normesta
8-
ms.date: 09/16/2022
8+
ms.date: 12/21/2022
99
ms.service: storage
1010
ms.subservice: common
1111
ms.topic: conceptual
@@ -22,7 +22,7 @@ A lifecycle management policy is comprised of one or more rules that define a se
2222

2323
- The number of days since the blob was created.
2424
- The number of days since the blob was last modified.
25-
- The number of days since the blob was last accessed. To use this condition in an action, you must first [optionally enable access time tracking](#optionally-enable-access-time-tracking).
25+
- The number of days since the blob was last accessed. To use this condition in an action, you should first [optionally enable last access time tracking](#optionally-enable-access-time-tracking).
2626

2727
When the selected condition is true, then the management policy performs the specified action. For example, if you have defined an action to move a blob from the hot tier to the cool tier if it has not been modified for 30 days, then the lifecycle management policy will move the blob 30 days after the last write operation to that blob.
2828

0 commit comments

Comments
 (0)