Skip to content

Commit e912931

Browse files
authored
Merge pull request #178180 from tamram/tamram21-1101
add PS/CLI versions for rehydrate priority + capitalize tiers
2 parents 1237791 + 1464c8d commit e912931

21 files changed

+80
-79
lines changed

articles/storage/blobs/TOC.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ items:
210210
items:
211211
- name: Overview
212212
href: access-tiers-overview.md
213-
- name: Blob rehydration from archive tier
213+
- name: Blob rehydration from Archive tier
214214
href: archive-rehydrate-overview.md
215215
- name: Lifecycle management policies
216216
href: lifecycle-management-overview.md

articles/storage/blobs/access-tiers-online-manage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ You can set a blob's access tier in any of the following ways:
2424

2525
This article describes how manage a blob in an online access tier (Hot or Cool). For more information about how to move a blob to the Archive tier, see [Archive a blob](archive-blob.md). For more information about how to rehydrate a blob from the Archive tier, see [Rehydrate an archived blob to an online tier](archive-rehydrate-to-online-tier.md).
2626

27-
For more information about access tiers for blobs, see [Hot, cool, and archive access tiers for blob data](access-tiers-overview.md).
27+
For more information about access tiers for blobs, see [Hot, Cool, and Archive access tiers for blob data](access-tiers-overview.md).
2828

2929
## Set the default access tier for a storage account
3030

articles/storage/blobs/access-tiers-overview.md

Lines changed: 39 additions & 39 deletions
Large diffs are not rendered by default.

articles/storage/blobs/archive-blob.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ms.subservice: blobs
1717

1818
The Archive tier is an offline tier for storing blob data that is rarely accessed. The Archive tier offers the lowest storage costs, but higher data retrieval costs and latency compared to the online tiers (Hot and Cool). Data must remain in the Archive tier for at least 180 days or be subject to an early deletion charge. For more information about the Archive tier, see [Archive access tier](access-tiers-overview.md#archive-access-tier).
1919

20-
While a blob is in the Archive tier, it can't be read or modified. To read or download a blob in the Archive tier, you must first rehydrate it to an online tier, either hot or cool. Data in the Archive tier can take up to 15 hours to rehydrate, depending on the priority you specify for the rehydration operation. For more information about blob rehydration, see [Overview of blob rehydration from the Archive tier](archive-rehydrate-overview.md).
20+
While a blob is in the Archive tier, it can't be read or modified. To read or download a blob in the Archive tier, you must first rehydrate it to an online tier, either Hot or Cool. Data in the Archive tier can take up to 15 hours to rehydrate, depending on the priority you specify for the rehydration operation. For more information about blob rehydration, see [Overview of blob rehydration from the Archive tier](archive-rehydrate-overview.md).
2121

2222
> [!CAUTION]
2323
> A blob in the Archive tier is offline — that is, it cannot be read or modified — until it is rehydrated. The rehydration process can take several hours and has associated costs. Before you move data to the Archive tier, consider whether taking blob data offline may affect your workflows.
@@ -38,7 +38,7 @@ To archive a blob or set of blobs on upload from the Azure portal, follow these
3838
1. Expand the **Advanced** section, and set the **Access tier** to *Archive*.
3939
1. Select the **Upload** button.
4040

41-
:::image type="content" source="media/archive-blob/upload-blobs-archive-portal.png" alt-text="Screenshot showing how to upload blobs to the archive tier in the Azure portal":::
41+
:::image type="content" source="media/archive-blob/upload-blobs-archive-portal.png" alt-text="Screenshot showing how to upload blobs to the Archive tier in the Azure portal":::
4242

4343
### [PowerShell](#tab/azure-powershell)
4444

@@ -110,7 +110,7 @@ You can move an existing blob to the Archive tier in one of two ways:
110110

111111
Use the **Set Blob Tier** operation to move a blob from the Hot or Cool tier to the Archive tier. The **Set Blob Tier** operation is best for scenarios where you will not need to access the archived data before the early deletion interval has elapsed.
112112

113-
The **Set Blob Tier** operation changes the tier of a single blob. To move a set of blobs to the archive tier with optimum performance, Microsoft recommends performing a bulk archive operation. The bulk archive operation sends a batch of **Set Blob Tier** calls to the service in a single transaction. For more information, see [Bulk archive](#bulk-archive).
113+
The **Set Blob Tier** operation changes the tier of a single blob. To move a set of blobs to the Archive tier with optimum performance, Microsoft recommends performing a bulk archive operation. The bulk archive operation sends a batch of **Set Blob Tier** calls to the service in a single transaction. For more information, see [Bulk archive](#bulk-archive).
114114

115115
#### [Portal](#tab/azure-portal)
116116

@@ -226,6 +226,6 @@ For an in-depth sample application that shows how to change tiers with a batch o
226226

227227
## See also
228228

229-
- [Hot, cool, and archive access tiers for blob data](access-tiers-overview.md)
229+
- [Hot, Cool, and Archive access tiers for blob data](access-tiers-overview.md)
230230
- [Blob rehydration from the Archive tier](archive-rehydrate-overview.md)
231231
- [Rehydrate an archived blob to an online tier](archive-rehydrate-to-online-tier.md)

articles/storage/blobs/archive-rehydrate-handle-event.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Run an Azure Function in response to a blob rehydration event
33
titleSuffix: Azure Storage
4-
description: Learn how to develop an Azure Function with .NET, then configure Azure Event Grid to run the function in response to an event fired when a blob is rehydrated from the archive tier.
4+
description: Learn how to develop an Azure Function with .NET, then configure Azure Event Grid to run the function in response to an event fired when a blob is rehydrated from the Archive tier.
55
services: storage
66
author: tamram
77

@@ -15,13 +15,13 @@ ms.subservice: blobs
1515

1616
# Run an Azure Function in response to a blob rehydration event
1717

18-
To read a blob that is in the archive tier, you must first rehydrate the blob to the hot or cool tier. The rehydration process can take several hours to complete. Instead of repeatedly polling the status of the rehydration operation, you can configure [Azure Event Grid](../../event-grid/overview.md) to fire an event when the blob rehydration operation is complete and handle this event in your application.
18+
To read a blob that is in the Archive tier, you must first rehydrate the blob to the Hot or Cool tier. The rehydration process can take several hours to complete. Instead of repeatedly polling the status of the rehydration operation, you can configure [Azure Event Grid](../../event-grid/overview.md) to fire an event when the blob rehydration operation is complete and handle this event in your application.
1919

2020
When an event occurs, Event Grid sends the event to an event handler via an endpoint. A number of Azure services can serve as event handlers, including [Azure Functions](../../azure-functions/functions-overview.md). An Azure Function is a block of code that can execute in response to an event. This how-to walks you through the process of developing an Azure Function and then configuring Event Grid to run the function in response to an event that occurs when a blob is rehydrated.
2121

2222
This article shows you how to create and test an Azure Function with .NET from Visual Studio. You can build Azure Functions from a variety of local development environments and using a variety of different programming languages. For more information about supported languages for Azure Functions, see [Supported languages in Azure Functions](../../azure-functions/supported-languages.md). For more information about development options for Azure Functions, see [Code and test Azure Functions locally](../../azure-functions/functions-develop-local.md).
2323

24-
For more information about rehydrating blobs from the archive tier, see [Overview of blob rehydration from the archive tier](archive-rehydrate-overview.md).
24+
For more information about rehydrating blobs from the Archive tier, see [Overview of blob rehydration from the Archive tier](archive-rehydrate-overview.md).
2525

2626
## Prerequisites
2727

@@ -249,17 +249,17 @@ Whenever you make changes to the code in your Azure Function, you must publish t
249249

250250
You now have a function app that contains an Azure Function that can run in response to an event. The next step is to create an event subscription from your storage account. The event subscription configures the storage account to publish an event through Event Grid in response to an operation on a blob in your storage account. Event Grid then sends the event to the event handler endpoint that you've specified. In this case, the event handler is the Azure Function that you created in the previous section.
251251

252-
When you create the event subscription, you can filter which events are sent to the event handler. The events to capture when rehydrating a blob from the archive tier are **Microsoft.Storage.BlobTierChanged**, corresponding to a [Set Blob Tier](/rest/api/storageservices/set-blob-tier) operation, and **Microsoft.Storage.BlobCreated** events, corresponding to a [Copy Blob](/rest/api/storageservices/copy-blob) operation. Depending on your scenario, you may want to handle only one of these events.
252+
When you create the event subscription, you can filter which events are sent to the event handler. The events to capture when rehydrating a blob from the Archive tier are **Microsoft.Storage.BlobTierChanged**, corresponding to a [Set Blob Tier](/rest/api/storageservices/set-blob-tier) operation, and **Microsoft.Storage.BlobCreated** events, corresponding to a [Copy Blob](/rest/api/storageservices/copy-blob) operation. Depending on your scenario, you may want to handle only one of these events.
253253

254254
To create the event subscription, follow these steps:
255255

256-
1. In the Azure portal, navigate to the storage account that contains blobs to rehydrate from the archive tier.
256+
1. In the Azure portal, navigate to the storage account that contains blobs to rehydrate from the Archive tier.
257257
1. Select the **Events** setting in the left navigation pane.
258258
1. On the **Events** page, select **More options**.
259259
1. Select **Create Event Subscription**.
260260
1. On the **Create Event Subscription** page, in the **Event subscription details** section, provide a name for the event subscription.
261261
1. In the **Topic details** section, provide a name for the system topic. The system topic represents one or more events that are published by Azure Storage. For more information about system topics, see [System topics in Azure Event Grid](../../event-grid/system-topics.md).
262-
1. In the **Event Types** section, select the **Blob Created** and **Blob Tier Changed** events. Depending on how you choose to rehydrate a blob from the archive tier, one of these two events will fire.
262+
1. In the **Event Types** section, select the **Blob Created** and **Blob Tier Changed** events. Depending on how you choose to rehydrate a blob from the Archive tier, one of these two events will fire.
263263

264264
:::image type="content" source="media/archive-rehydrate-handle-event/select-event-types-portal.png" alt-text="Screenshot showing how to select event types for blob rehydration events in the Azure portal":::
265265

@@ -286,20 +286,20 @@ To learn how to test the function by rehydrating a blob, see one of these two pr
286286
- [Rehydrate a blob with a copy operation](archive-rehydrate-to-online-tier.md#rehydrate-a-blob-with-a-copy-operation)
287287
- [Rehydrate a blob by changing its tier](archive-rehydrate-to-online-tier.md#rehydrate-a-blob-by-changing-its-tier)
288288

289-
After the rehydration is complete, the log blob is written to the same container as the blob that you rehydrated. For example, after you rehydrate a blob with a copy operation, you can see in the Azure portal that the original source blob remains in the archive tier, the fully rehydrated destination blob appears in the targeted online tier, and the log blob that was created by the Azure Function also appears in the list.
289+
After the rehydration is complete, the log blob is written to the same container as the blob that you rehydrated. For example, after you rehydrate a blob with a copy operation, you can see in the Azure portal that the original source blob remains in the Archive tier, the fully rehydrated destination blob appears in the targeted online tier, and the log blob that was created by the Azure Function also appears in the list.
290290

291-
:::image type="content" source="media/archive-rehydrate-handle-event/copy-blob-archive-tier-rehydrated-with-log-blob.png" alt-text="Screenshot showing the original blob in the archive tier, the rehydrated blob in the hot tier, and the log blob written by the event handler":::
291+
:::image type="content" source="media/archive-rehydrate-handle-event/copy-blob-archive-tier-rehydrated-with-log-blob.png" alt-text="Screenshot showing the original blob in the Archive tier, the rehydrated blob in the Hot tier, and the log blob written by the event handler":::
292292

293-
Keep in mind that rehydrating a blob can take up to 15 hours, depending on the rehydration priority setting. If you set the rehydration priority to **High**, rehydration may complete in under one hour for blobs that are less than 10 GB in size. However, a high-priority rehydration incurs a greater cost. For more information, see [Overview of blob rehydration from the archive tier](archive-rehydrate-overview.md).
293+
Keep in mind that rehydrating a blob can take up to 15 hours, depending on the rehydration priority setting. If you set the rehydration priority to **High**, rehydration may complete in under one hour for blobs that are less than 10 GB in size. However, a high-priority rehydration incurs a greater cost. For more information, see [Overview of blob rehydration from the Archive tier](archive-rehydrate-overview.md).
294294

295295
> [!TIP]
296-
> Although the goal of this how-to is to handle these events in the context of blob rehydration, for testing purposes it may also be helpful to observe these events in response to uploading a blob or changing an online blob's tier (*i.e.*, from hot to cool), because the event fires immediately.
296+
> Although the goal of this how-to is to handle these events in the context of blob rehydration, for testing purposes it may also be helpful to observe these events in response to uploading a blob or changing an online blob's tier (*i.e.*, from Hot to Cool), because the event fires immediately.
297297

298298
For more information on how to filter events in Event Grid, see [How to filter events for Azure Event Grid](../../event-grid/how-to-filter-events.md).
299299

300300
## See also
301301

302-
- [Hot, cool, and archive access tiers for blob data](access-tiers-overview.md)
303-
- [Overview of blob rehydration from the archive tier](archive-rehydrate-overview.md)
302+
- [Hot, Cool, and Archive access tiers for blob data](access-tiers-overview.md)
303+
- [Overview of blob rehydration from the Archive tier](archive-rehydrate-overview.md)
304304
- [Rehydrate an archived blob to an online tier](archive-rehydrate-to-online-tier.md)
305305
- [Reacting to Blob storage events](storage-blob-event-overview.md)

articles/storage/blobs/archive-rehydrate-to-online-tier.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: tamram
77

88
ms.service: storage
99
ms.topic: how-to
10-
ms.date: 10/25/2021
10+
ms.date: 11/01/2021
1111
ms.author: tamram
1212
ms.reviewer: fryu
1313
ms.custom: devx-track-azurepowershell
@@ -210,7 +210,7 @@ To change the rehydration priority for a pending operation with the Azure portal
210210

211211
#### [PowerShell](#tab/azure-powershell)
212212

213-
To change the rehydration priority for a pending operation with PowerShell, first get the blob's properties from the service. This step is necessary to ensure that you have an object with the most recent property settings. Next, use the blob's **BlobClient** property to return a .NET reference to the blob, then call the **SetAccessTier** method on that reference.
213+
To change the rehydration priority for a pending operation with PowerShell, make sure that you have installed the [Az.Storage](https://www.powershellgallery.com/packages/Az.Storage) module, version 3.12.0 or later. Next, get the blob's properties from the service. This step is necessary to ensure that you have an object with the most recent property settings. Finally, use the blob's **BlobClient** property to return a .NET reference to the blob, then call the **SetAccessTier** method on that reference.
214214

215215
```azurepowershell
216216
# Get the blob from the service.
@@ -220,7 +220,6 @@ $rehydratingBlob = Get-AzStorageBlob -Container $containerName -Blob $blobName -
220220
if ($rehydratingBlob.BlobProperties.RehydratePriority -eq "Standard")
221221
{
222222
# Change rehydration priority to High, using the same target tier.
223-
224223
if ($rehydratingBlob.BlobProperties.ArchiveStatus -eq "rehydrate-pending-to-hot")
225224
{
226225
$rehydratingBlob.BlobClient.SetAccessTier("Hot", $null, "High")
@@ -237,7 +236,9 @@ if ($rehydratingBlob.BlobProperties.RehydratePriority -eq "Standard")
237236

238237
#### [Azure CLI](#tab/azure-cli)
239238

240-
To change the rehydration priority for a pending operation with Azure CLI, call the [az storage blob set-tier](/cli/azure/storage/blob#az_storage_blob_set_tier) command with the `--rehydrate-priority` parameter set to *High*. The target tier (Hot or Cool) must be the same tier that you originally specified for the rehydration operation. Remember to replace placeholders in angle brackets with your own values:
239+
To change the rehydration priority for a pending operation with Azure CLI, first make sure that you have installed the Azure CLI, version 2.29.2 or later. For more information about installing the Azure CLI, see [How to install the Azure CLI](/cli/azure/install-azure-cli).
240+
241+
Next, call the [az storage blob set-tier](/cli/azure/storage/blob#az_storage_blob_set_tier) command with the `--rehydrate-priority` parameter set to *High*. The target tier (Hot or Cool) must be the same tier that you originally specified for the rehydration operation. Remember to replace placeholders in angle brackets with your own values:
241242

242243
```azurecli
243244
# Update the rehydration priority for a blob moving to the Hot tier.

articles/storage/blobs/immutable-storage-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Immutability policies are supported for both new and existing storage accounts.
118118

119119
### Access tiers
120120

121-
All blob access tiers support immutable storage. You can change the access tier of a blob with the Set Blob Tier operation. For more information, see [Hot, cool, and archive access tiers for blob data](access-tiers-overview.md).
121+
All blob access tiers support immutable storage. You can change the access tier of a blob with the Set Blob Tier operation. For more information, see [Hot, Cool, and Archive access tiers for blob data](access-tiers-overview.md).
122122

123123
### Redundancy configurations
124124

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,5 +396,5 @@ When a blob is moved from one access tier to another, its last modification time
396396
## Next steps
397397

398398
- [Configure a lifecycle management policy](lifecycle-management-policy-configure.md)
399-
- [Hot, cool, and archive access tiers for blob data](access-tiers-overview.md)
399+
- [Hot, Cool, and Archive access tiers for blob data](access-tiers-overview.md)
400400
- [Manage and find data on Azure Blob Storage with blob index](storage-manage-find-blobs.md)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,4 +216,4 @@ A lifecycle management policy must be read or written in full. Partial updates a
216216
## See also
217217

218218
- [Optimize costs by automatically managing the data lifecycle](lifecycle-management-overview.md)
219-
- [Hot, cool, and archive access tiers for blob data](access-tiers-overview.md)
219+
- [Hot, Cool, and Archive access tiers for blob data](access-tiers-overview.md)

0 commit comments

Comments
 (0)