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/archive-blob.md
+41-12Lines changed: 41 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ author: normesta
7
7
8
8
ms.service: storage
9
9
ms.topic: how-to
10
-
ms.date: 07/21/2022
10
+
ms.date: 08/24/2022
11
11
ms.author: normesta
12
12
ms.reviewer: fryu
13
13
ms.subservice: blobs
@@ -285,29 +285,57 @@ You can use the Azure portal, PowerShell, Azure CLI, or an Azure Resource Manage
285
285
286
286
To create a lifecycle management policy to archive blobs in the Azure portal, follow these steps:
287
287
288
+
#### Step 1: Create the rule and specify the blob type
289
+
288
290
1. Navigate to your storage account in the portal.
289
-
1. Under **Data management**, locate the **Lifecycle management** settings.
290
-
1. Select the **Add a rule** button.
291
-
1. On the **Details** tab, specify a name for your rule.
292
-
1. Specify the rule scope: either **Apply rule to all blobs in your storage account**, or **Limit blobs with filters**.
293
-
1. Select the types of blobs for which the rule is to be applied, and specify whether to include blob snapshots or versions.
291
+
292
+
2. Under **Data management**, locate the **Lifecycle management** settings.
293
+
294
+
3. Select the **Add a rule** button.
295
+
296
+
4. On the **Details** tab, specify a name for your rule.
297
+
298
+
5. Specify the rule scope: either **Apply rule to all blobs in your storage account**, or **Limit blobs with filters**.
299
+
300
+
6. Select the types of blobs for which the rule is to be applied, and specify whether to include blob snapshots or versions.
294
301
295
302
:::image type="content" source="media/archive-blob/lifecycle-policy-details-tab-portal.png" alt-text="Screenshot showing how to configure a lifecycle management policy - Details tab.":::
296
303
304
+
#### Step 2: Add rule conditions
305
+
297
306
1. Depending on your selections, you can configure rules for base blobs (current versions), previous versions, or blob snapshots. Specify one of two conditions to check for:
298
307
299
308
- Objects were last modified some number of days ago.
309
+
- Objects were created some number of days ago.
300
310
- Objects were last accessed some number of days ago.
301
311
302
312
Only one of these conditions can be applied to move a particular type of object to the Archive tier per rule. For example, if you define an action that archives base blobs if they haven't been modified for 90 days, then you can't also define an action that archives base blobs if they haven't been accessed for 90 days. Similarly, you can define one action per rule with either of these conditions to archive previous versions, and one to archive snapshots.
303
313
304
-
1. Next, specify the number of days to elapse after the object is modified or accessed.
305
-
1. Specify that the object is to be moved to the Archive tier after the interval has elapsed.
314
+
8. Next, specify the number of days to elapse after the object is modified or accessed.
315
+
316
+
9. Specify that the object is to be moved to the Archive tier after the interval has elapsed.
317
+
318
+
> [!div class="mx-imgBorder"]
319
+
> 
320
+
321
+
10. If you chose to limit the blobs affected by the rule with filters, you can specify a filter, either with a blob prefix or blob index match.
322
+
323
+
#### Step 3: Ensure that the rule excludes rehydrated blobs
324
+
325
+
If you rehydrate a blob by changing it's tier, this rule will move the blob back to the archive tier if the last modified time, creation time, or last access time is beyond the threshold set for the policy.
326
+
327
+
If you selected the **Last modified** rule condition, you can prevent this from happening by selecting **Skip blobs that have been rehydrated in the last**, and then entering the number of days you want a rehydrated blob to be excluded from this rule.
328
+
329
+
> [!div class="mx-imgBorder"]
330
+
> 
331
+
332
+
> [!NOTE]
333
+
> This option appears only if you selected the **Last modified** rule condition.
334
+
335
+
Select the **Add** button to add the rule to the policy.
306
336
307
-
:::image type="content" source="media/archive-blob/lifecycle-policy-base-blobs-tab-portal.png" alt-text="Screenshot showing how to configure a lifecycle management policy - Base blob tab.":::
308
337
309
-
1. If you chose to limit the blobs affected by the rule with filters, you can specify a filter, either with a blob prefix or blob index match.
310
-
1. Select the **Add** button to add the rule to the policy.
338
+
#### View the policy JSON
311
339
312
340
After you create the lifecycle management policy, you can view the JSON for the policy on the **Lifecycle management** page by switching from **List view** to **Code view**.
313
341
@@ -324,7 +352,8 @@ Here's the JSON for the simple lifecycle management policy created in the images
Copy file name to clipboardExpand all lines: articles/storage/blobs/archive-rehydrate-overview.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ services: storage
5
5
author: normesta
6
6
7
7
ms.author: normesta
8
-
ms.date: 07/26/2022
8
+
ms.date: 08/24/2022
9
9
ms.service: storage
10
10
ms.subservice: blobs
11
11
ms.topic: conceptual
@@ -52,6 +52,7 @@ You must copy the archived blob to a new blob with a different name or to a diff
52
52
Microsoft recommends performing a copy operation in most scenarios where you need to move a blob from the Archive tier to an online tier, for the following reasons:
53
53
54
54
- A copy operation avoids the early deletion fee that is assessed if you change the tier of a blob from the Archive tier before the required 180-day period elapses. For more information, see [Archive access tier](access-tiers-overview.md#archive-access-tier).
55
+
55
56
- If there's a lifecycle management policy in effect for the storage account, then rehydrating a blob with [Set Blob Tier](/rest/api/storageservices/set-blob-tier) can result in a scenario where the lifecycle policy moves the blob back to the Archive tier after rehydration because the last modified time is beyond the threshold set for the policy. A copy operation leaves the source blob in the Archive tier and creates a new blob with a different name and a new last modified time, so there's no risk that the rehydrated blob will be moved back to the Archive tier by the lifecycle policy.
56
57
57
58
Copying a blob from the Archive tier can take hours to complete depending on the rehydration priority selected. Behind the scenes, a blob copy operation reads your archived source blob to create a new online blob in the selected destination tier. The new blob may be visible when you list the blobs in the parent container before the rehydration operation is complete, but its tier will be set to Archive. The data isn't available until the read operation from the source blob in the Archive tier is complete and the blob's contents have been written to the new destination blob in an online tier. The new blob is an independent copy, so modifying or deleting it doesn't affect the source blob in the Archive tier.
@@ -88,9 +89,9 @@ Once a [Set Blob Tier](/rest/api/storageservices/set-blob-tier) request is initi
88
89
To learn how to rehydrate a blob by changing its tier to an online tier, see [Rehydrate a blob by changing its tier](archive-rehydrate-to-online-tier.md#rehydrate-a-blob-by-changing-its-tier).
89
90
90
91
> [!CAUTION]
91
-
> Changing a blob's tier doesn't affect its last modified time. If there is a [lifecycle management](./lifecycle-management-overview.md) policy in effect for the storage account, then rehydrating a blob with **Set Blob Tier** can result in a scenario where the lifecycle policy moves the blob back to the Archive tier after rehydration because the last modified time is beyond the threshold set for the policy.
92
+
> Changing a blob's tier doesn't affect its last modified time. If there is a [lifecycle management](./lifecycle-management-overview.md) policy in effect for the storage account, then rehydrating a blob with **Set Blob Tier** can result in a scenario where the lifecycle policy moves the blob back to the Archive tier after rehydration because the last modified time is beyond the threshold set for the policy.
92
93
>
93
-
> To avoid this scenario, rehydrate the archived blob by copying it instead, as described in the [Copy an archived blob to an online tier](#copy-an-archived-blob-to-an-online-tier) section. Performing a copy operation creates a new instance of the blob with an updated last modified time, so it won't trigger the lifecycle management policy.
94
+
> To avoid this scenario, add the `daysAfterLastTierChangeGreaterThan` condition to the `tierToArchive` action of the policy. Alternatively, you can rehydrate the archived blob by copying it instead, as described in the [Copy an archived blob to an online tier](#copy-an-archived-blob-to-an-online-tier) section. Performing a copy operation creates a new instance of the blob with an updated last modified time, so it won't trigger the lifecycle management policy.
94
95
95
96
## Check the status of a blob rehydration operation
Copy file name to clipboardExpand all lines: articles/storage/blobs/archive-rehydrate-to-online-tier.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ author: normesta
7
7
8
8
ms.service: storage
9
9
ms.topic: how-to
10
-
ms.date: 07/26/2022
10
+
ms.date: 08/24/2022
11
11
ms.author: normesta
12
12
ms.reviewer: fryu
13
13
ms.custom: devx-track-azurepowershell
@@ -18,7 +18,7 @@ ms.subservice: blobs
18
18
19
19
To read a blob that is in the Archive tier, you must first rehydrate the blob to an online tier (Hot or Cool) tier. You can rehydrate a blob in one of two ways:
20
20
21
-
- By copying it to a new blob in the Hot or Cool tier with the [Copy Blob](/rest/api/storageservices/copy-blob) operation. Microsoft recommends this option for most scenarios.
21
+
- By copying it to a new blob in the Hot or Cool tier with the [Copy Blob](/rest/api/storageservices/copy-blob) operation.
22
22
- By changing its tier from Archive to Hot or Cool with the [Set Blob Tier](/rest/api/storageservices/set-blob-tier) operation.
23
23
24
24
When you rehydrate a blob, you can specify the priority for the operation to either standard priority or high priority. A standard-priority rehydration operation may take up to 15 hours to complete. A high-priority operation is prioritized over standard-priority requests and may complete in less than one hour for objects under 10 GB in size. You can change the rehydration priority from *Standard* to *High* while the operation is pending.
Copy file name to clipboardExpand all lines: articles/storage/blobs/lifecycle-management-overview.md
+16-6Lines changed: 16 additions & 6 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: normesta
6
6
7
7
ms.author: normesta
8
-
ms.date: 05/09/2022
8
+
ms.date: 08/24/2022
9
9
ms.service: storage
10
10
ms.subservice: common
11
11
ms.topic: conceptual
@@ -101,7 +101,8 @@ The following sample rule filters the account to run the actions on objects that
101
101
"daysAfterModificationGreaterThan": 30
102
102
},
103
103
"tierToArchive": {
104
-
"daysAfterModificationGreaterThan": 90
104
+
"daysAfterModificationGreaterThan": 90,
105
+
"daysAfterLastTierChangeGreaterThan": 7
105
106
},
106
107
"delete": {
107
108
"daysAfterModificationGreaterThan": 2555
@@ -164,6 +165,7 @@ The run conditions are based on age. Current versions use the last modified time
164
165
| daysAfterModificationGreaterThan | Integer value indicating the age in days | The condition for actions on a current version of a blob |
165
166
| daysAfterCreationGreaterThan | Integer value indicating the age in days | The condition for actions on a previous version of a blob or a blob snapshot |
166
167
| daysAfterLastAccessTimeGreaterThan | Integer value indicating the age in days | The condition for a current version of a blob when access tracking is enabled |
168
+
| 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. |
167
169
168
170
## Examples of lifecycle policies
169
171
@@ -235,7 +237,7 @@ In the following example, blobs are moved to cool storage if they haven't been a
235
237
236
238
### Archive data after ingest
237
239
238
-
Some data stays idle in the cloud and is rarely, if ever, accessed. The following lifecycle policy is configured to archive data shortly after it's ingested. This example transitions block blobs in a container named `archivecontainer` into an archive tier. The transition is accomplished by acting on blobs 0 days after last modified time:
240
+
Some data stays idle in the cloud and is rarely, if ever, accessed. The following lifecycle policy is configured to archive data shortly after it's ingested. This example transitions block blobs in a container named `archivecontainer` into an archive tier. The transition is accomplished by acting on blobs 0 days after last modified time.
239
241
240
242
```json
241
243
{
@@ -251,7 +253,9 @@ Some data stays idle in the cloud and is rarely, if ever, accessed. The followin
@@ -387,9 +391,15 @@ The platform runs the lifecycle policy once a day. Once you configure a policy,
387
391
388
392
The updated policy takes up to 24 hours to go into effect. Once the policy is in effect, it could take up to 24 hours for the actions to run. Therefore, the policy actions may take up to 48 hours to complete. If the update is to disable or delete a rule, and enableAutoTierToHotFromCool was used, auto-tiering to Hot tier will still happen. For example, set a rule including enableAutoTierToHotFromCool based on last access. If the rule is disabled/deleted, and a blob is currently in cool and then accessed, it will move back to Hot as that is applied on access outside of lifecycle management. The blob won't then move from Hot to Cool given the lifecycle management rule is disabled/deleted. The only way to prevent autoTierToHotFromCool is to turn off last access time tracking.
389
393
390
-
### I manually rehydrated an archived blob. How do I prevent it from being moved back to the Archive tier temporarily?
394
+
### I rehydrated an archived blob. How do I prevent it from being moved back to the Archive tier temporarily?
391
395
392
-
When a blob is moved from one access tier to another, its last modification time doesn't change. If you manually rehydrate an archived blob to hot tier, it would be moved back to archive tier by the lifecycle management engine. Disable the rule that affects this blob temporarily to prevent it from being archived again. Re-enable the rule when the blob can be safely moved back to archive tier. You may also copy the blob to another location if it needs to stay in hot or cool tier permanently.
396
+
If there's a lifecycle management policy in effect for the storage account, then rehydrating a blob by changing it's tier can result in a scenario where the lifecycle policy moves the blob back to the archive tier. This can happen if the last modified time, creation time, or last access time is beyond the threshold set for the policy. There's three ways to prevent this from happening:
397
+
398
+
- Add the `daysAfterLastTierChangeGreaterThan` condition to the tierToArchive action of the policy. This condition applies only to the last modified time. See [Use lifecycle management policies to archive blobs](archive-blob.md#use-lifecycle-management-policies-to-archive-blobs).
399
+
400
+
- Disable the rule that affects this blob temporarily to prevent it from being archived again. Re-enable the rule when the blob can be safely moved back to archive tier.
401
+
402
+
- If the blob needs to stay in the hot or cool tier permanently, copy the blob to another location where the lifecycle manage policy is not in effect.
393
403
394
404
### The blob prefix match string didn't apply the policy to the expected blobs
Copy file name to clipboardExpand all lines: articles/storage/blobs/lifecycle-management-policy-configure.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,8 @@ To enable last access time tracking with the Azure portal, follow these steps:
38
38
1. Navigate to your storage account in the Azure portal.
39
39
1. In the **Data management** section, select **Lifecycle management**.
40
40
41
-
:::image type="content" source="media/lifecycle-management-policy-configure/last-access-tracking-enable.png" alt-text="Screenshot showing how to enable last access tracking in Azure portal":::
41
+
> [!div class="mx-imgBorder"]
42
+
> 
0 commit comments