Skip to content

Commit 5d860c6

Browse files
committed
blobs-lifecycle-mgmt-clarify last accessed time behavior
1 parent cc97d75 commit 5d860c6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
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

0 commit comments

Comments
 (0)