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/access-tiers-online-manage.md
+83-12Lines changed: 83 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ The default access tier setting for a general-purpose v2 storage account determi
32
32
33
33
When you change the default access tier setting for an existing general-purpose v2 storage account, the change applies to all blobs in the account for which an access tier has not been explicitly set. Changing the default access tier may have a billing impact. For details, see [Default account access tier setting](access-tiers-overview.md#default-account-access-tier-setting).
34
34
35
-
#### [Portal](#tab/portal)
35
+
#### [Portal](#tab/azure-portal)
36
36
37
37
To set the default access tier for a storage account at create time in the Azure portal, follow these steps:
38
38
@@ -89,7 +89,7 @@ The following sections describe how to specify that a blob is uploaded to either
89
89
90
90
To create a blob in the Hot or Cool tier tier, specify that tier when you create the blob. The access tier specified on upload overrides the default access tier for the storage account.
91
91
92
-
### [Azure portal](#tab/portal)
92
+
### [Portal](#tab/azure-portal)
93
93
94
94
To upload a blob or set of blobs to a specific tier from the Azure portal, follow these steps:
95
95
@@ -166,7 +166,7 @@ Storage accounts have a default access tier setting that indicates in which onli
166
166
167
167
A blob that doesn't have an explicitly assigned tier infers its tier from the default account access tier setting. You can determine whether a blob's access tier is inferred by using the Azure portal, PowerShell, or Azure CLI.
168
168
169
-
#### [Portal](#tab/portal)
169
+
#### [Portal](#tab/azure-portal)
170
170
171
171
If a blob's access tier is inferred from the default account access tier setting, then the Azure portal displays the access tier as **Hot (inferred)** or **Cool (inferred)**.
172
172
@@ -214,44 +214,115 @@ az storage blob show \
214
214
215
215
You can change the tier of an existing blob in one of two ways:
216
216
217
-
- By calling the [Set Blob Tier](/rest/api/storageservices/set-blob-tier) operation, either directly or via a [lifecycle management](#blob-lifecycle-management) policy, to change the blob's tier.
217
+
- By calling the [Set Blob Tier](/rest/api/storageservices/set-blob-tier) operation, either directly or via a [lifecycle management](access-tiers-overview.md#blob-lifecycle-management) policy, to change the blob's tier.
218
218
- By calling the [Copy Blob](/rest/api/storageservices/copy-blob) operation to copy a blob from one tier to another. In this case, the source blob remains in the original tier, and a new blob is created in the target tier.
219
219
220
220
For more information about each of these options, see [Setting or changing a blob's tier](access-tiers-overview.md#setting-or-changing-a-blobs-tier).
221
221
222
+
Use PowerShell, Azure CLI, or one of the Azure Storage client libraries to move a blob to a different tier.
223
+
222
224
### Change a blob's tier
223
225
224
226
When you change a blob's tier, you move that blob and all of its data to the target tier. Calling [Set Blob Tier](/rest/api/storageservices/set-blob-tier) is typically the best option when you are changing a blob's tier from a hotter tier to a cooler one.
225
227
226
-
# [Portal](#tab/portal)
228
+
# [Portal](#tab/azure-portal)
229
+
230
+
To change a blob's tier from Hot to Cool in the Azure portal, follow these steps:
227
231
228
-
TBD
232
+
1. Navigate to the blob for which you want to change the tier.
233
+
1. Select the blob, then select the **Change tier** button.
234
+
1. In the **Change tier** dialog, select the target tier.
235
+
1. Select the **Save** button.
236
+
237
+
:::image type="content" source="media/access-tiers-online-manage/change-blob-tier-portal.png" alt-text="Screenshot showing how to change a blob's tier in the Azure portal":::
229
238
230
239
#### [PowerShell](#tab/azure-powershell)
231
240
232
-
TBD
241
+
To change a blob's tier from Hot to Cool with PowerShell, use the blob's **BlobClient** property to return a .NET reference to the blob, then call the **SetAccessTier** method on that reference. Remember to replace placeholders in angle brackets with your own values:
To change a blob's tier from Hot to Cool with Azure CLI, call the [az storage blob set-tier](/cli/azure/storage/blob#az_storage_blob_set_tier) command. Remember to replace placeholders in angle brackets with your own values:
263
+
264
+
```azurecli
265
+
az storage blob set-tier \
266
+
--account-name <storage-account> \
267
+
--container-name <container> \
268
+
--name <blob> \
269
+
--tier Cool \
270
+
--auth-mode login
271
+
```
237
272
238
273
---
239
274
240
275
### Copy a blob to a different online tier
241
276
242
-
Calling [Copy Blob](/rest/api/storageservices/copy-blob) is recommended for most scenarios where you are moving a blob from Cool to Hot, or rehydrating a blob from the Archive tier. Use PowerShell, Azure CLI, or one of the Azure Storage client libraries to copy a blob to a different tier.
277
+
When you copy a blob to a different tier, you move that blob and all of its data to the target tier. Calling [Copy Blob](/rest/api/storageservices/copy-blob) is recommended for most scenarios where you are moving a blob from Cool to Hot, or rehydrating a blob from the Archive tier.
243
278
244
-
# [Portal](#tab/portal)
279
+
# [Portal](#tab/azure-portal)
245
280
246
281
N/A
247
282
248
283
#### [PowerShell](#tab/azure-powershell)
249
284
250
-
TBD
285
+
To copy a blob to from Cool to Hot with PowerShell, call the [Start-AzStorageBlobCopy](/powershell/module/az.storage/start-azstorageblobcopy) command and specify the target tier. Remember to replace placeholders in angle brackets with your own values:
286
+
287
+
```azurepowershell
288
+
# Initialize these variables with your values.
289
+
$rgName = "<resource-group>"
290
+
$accountName = "<storage-account>"
291
+
$srcContainerName = "<source-container>"
292
+
$destContainerName = "<dest-container>"
293
+
$srcBlobName = "<source-blob>"
294
+
$destBlobName = "<dest-blob>"
295
+
296
+
# Get the storage account context
297
+
$ctx = (Get-AzStorageAccount `
298
+
-ResourceGroupName $rgName `
299
+
-Name $accountName).Context
300
+
301
+
# Copy the source blob to a new destination blob in Hot tier with Standard priority.
To copy a blob from Cool to Hot with Azure CLI, call the [az storage blob copy start](/cli/azure/storage/blob/copy#az_storage_blob_copy_start) command and specify the target tier. Remember to replace placeholders in angle brackets with your own values:
Copy file name to clipboardExpand all lines: articles/storage/blobs/archive-blob.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ You can use the Azure portal, PowerShell, Azure CLI, or one of the Azure Storage
28
28
29
29
To archive one ore more blobs on upload, create the blob directly in the Archive tier.
30
30
31
-
### [Azure portal](#tab/portal)
31
+
### [Portal](#tab/azure-portal)
32
32
33
33
To archive a blob or set of blobs on upload from the Azure portal, follow these steps:
34
34
@@ -40,7 +40,7 @@ To archive a blob or set of blobs on upload from the Azure portal, follow these
40
40
41
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":::
42
42
43
-
### [PowerShell](#tab/powershell)
43
+
### [PowerShell](#tab/azure-powershell)
44
44
45
45
To archive a blob or set of blobs on upload with PowerShell, call the [Set-AzStorageBlobContent](/powershell/module/az.storage/set-azstorageblobcontent) command, as shown in the following example. Remember to replace the placeholder values in brackets with your own values:
46
46
@@ -112,7 +112,7 @@ Use the **Set Blob Tier** operation to move a blob from the Hot or Cool tier to
112
112
113
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).
114
114
115
-
#### [Portal](#tab/portal)
115
+
#### [Portal](#tab/azure-portal)
116
116
117
117
To move an existing blob to the Archive tier in the Azure portal, follow these steps:
118
118
@@ -166,7 +166,7 @@ Use the [Copy Blob](/rest/api/storageservices/copy-blob) operation to copy a blo
166
166
167
167
A **Copy Blob** operation is best for scenarios where you may need to read or modify the archived data before the early deletion interval has elapsed. You can access the source blob's data without needing to rehydrate the archived blob.
Copy file name to clipboardExpand all lines: articles/storage/blobs/archive-rehydrate-overview.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ While a blob is in the Archive access tier, it's considered to be offline and ca
20
20
21
21
-[Change a blob's access tier to an online tier](#change-a-blobs-access-tier-to-an-online-tier): You can rehydrate an archived blob to the Hot or Cool tier by changing its tier using the [Set Blob Tier](/rest/api/storageservices/set-blob-tier) operation.
22
22
23
-
Rehydrating a blob from the Archive tier can take several hours to complete. Microsoft recommends rehydrating larger blobs for optimal performance. Rehydrating several small blobs concurrently may require additional time. A maximum of 10 GiB per storage account may be rehydrated per hour (???accurate).
23
+
Rehydrating a blob from the Archive tier can take several hours to complete. Microsoft recommends rehydrating larger blobs for optimal performance. Rehydrating several small blobs concurrently may require additional time. A maximum of 10 GiB per storage account may be rehydrated per hour.
24
24
25
25
You can configure [Azure Event Grid](../../event-grid/overview.md) to raise an event when you rehydrate a blob from the Archive tier to an online tier and to send the event to an event handler. For more information, see [Handle an event on blob rehydration](#handle-an-event-on-blob-rehydration).
0 commit comments