Skip to content

Commit 030d65b

Browse files
Merge pull request #313205 from willmarkley/docs-editor/access-tiers-smart-1773685343
Update access-tiers-smart.md
2 parents 7236b3d + a4b00d0 commit 030d65b

4 files changed

Lines changed: 76 additions & 26 deletions

File tree

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

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ You can set a blob's access tier in any of the following ways:
2020

2121
- By setting the account default access tier setting for the storage account. Blobs in the account inherit this access tier unless you explicitly override the setting for an individual blob.
2222

23-
- By explicitly setting a blob's tier on upload. You can create a blob in the hot, cool, cold, or archive tier.
23+
- By explicitly setting a blob's tier on upload. You can create a blob in the hot, cool, cold, smart, or archive tier.
2424
- By changing an existing blob's tier with a Set Blob Tier operation. Typically, you would use this operation to move from a hotter tier to a cooler one.
2525
- By copying a blob with a Copy Blob operation. Typically, you would use this operation to move from a cooler tier to a hotter one.
2626

@@ -64,7 +64,7 @@ To update the default access tier for an existing storage account in the Azure p
6464

6565
To change the default access tier setting for a storage account with PowerShell, call the [Set-AzStorageAccount](/powershell/module/az.storage/set-azstorageaccount) command, specifying the new default access tier.
6666

67-
```azurepowershell
67+
```azurepowershell-interactive
6868
$rgName = <resource-group>
6969
$accountName = <storage-account>
7070
@@ -74,9 +74,9 @@ Set-AzStorageAccount -ResourceGroupName $rgName -Name $accountName -AccessTier C
7474

7575
#### [Azure CLI](#tab/azure-cli)
7676

77-
To change the default access tier setting for a storage account with PowerShell, call the [Set-AzStorageAccount](/powershell/module/az.storage/set-azstorageaccount) command, specifying the new default access tier.
77+
To change the default access tier setting for a storage account with Azure CLI, call the [az storage account update](/cli/azure/storage/account#az-storage-account-update) command, specifying the new default access tier.
7878

79-
```azurecli
79+
```azurecli-interactive
8080
# Change the storage account tier to cool
8181
az storage account update \
8282
--resource-group <resource-group> \
@@ -94,7 +94,7 @@ N/A
9494

9595
When you upload a blob to Azure Storage, you have two options for setting the blob's tier on upload:
9696

97-
- You can explicitly specify the tier in which the blob will be created. This setting overrides the default access tier for the storage account. You can set the tier for a blob or set of blobs on upload to hot, cool, cold or archive.
97+
- You can explicitly specify the tier in which the blob will be created. This setting overrides the default access tier for the storage account. You can set the tier for a blob or set of blobs on upload to hot, cool, cold, smart or archive.
9898
- You can upload a blob without specifying a tier. In this case, the blob will be created in the default access tier specified for the storage account (either hot or cool).
9999

100100
If you are uploading a new blob that uses an encryption scope, you cannot change the access tier for that blob.
@@ -125,11 +125,11 @@ To upload a blob or set of blobs to a specific tier from the Azure portal, follo
125125

126126
To upload a blob or set of blobs to a specific tier 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:
127127

128-
```azurepowershell
128+
```azurepowershell-interactive
129129
$rgName = <resource-group>
130130
$storageAccount = <storage-account>
131131
$containerName = <container>
132-
# tier can be hot, cool, cold, or archive
132+
# tier can be hot, cool, cold, smart, or archive
133133
$tier = <tier>
134134
135135
# Get context object
@@ -154,9 +154,9 @@ Get-ChildItem -Path "C:\sample-blobs" -File -Recurse |
154154

155155
### [Azure CLI](#tab/azure-cli)
156156

157-
To upload a blob to a specific tier with Azure CLI, call the [az storage blob upload](/cli/azure/storage/blob#az-storage-blob-upload) command, as shown in the following example. Remember to replace the placeholder values in brackets with your own values. Replace the `<tier>` placeholder with `hot`, `cool`, `cold`, or `archive`.
157+
To upload a blob to a specific tier with Azure CLI, call the [az storage blob upload](/cli/azure/storage/blob#az-storage-blob-upload) command, as shown in the following example. Remember to replace the placeholder values in brackets with your own values. Replace the `<tier>` placeholder with `hot`, `cool`, `cold`, `smart`, or `archive`.
158158

159-
```azurecli
159+
```azurecli-interactive
160160
az storage blob upload \
161161
--account-name <storage-account> \
162162
--container-name <container> \
@@ -166,9 +166,9 @@ az storage blob upload \
166166
--auth-mode login
167167
```
168168

169-
To upload a set of blobs to a specific tier with Azure CLI, call the [az storage blob upload-batch](/cli/azure/storage/blob#az-storage-blob-upload-batch) command, as shown in the following example. Remember to replace the placeholder values in brackets with your own values. Replace the `<tier>` placeholder with `hot`, `cool`, `cold`, or `archive`.
169+
To upload a set of blobs to a specific tier with Azure CLI, call the [az storage blob upload-batch](/cli/azure/storage/blob#az-storage-blob-upload-batch) command, as shown in the following example. Remember to replace the placeholder values in brackets with your own values. Replace the `<tier>` placeholder with `hot`, `cool`, `cold`, `smart`, or `archive`.
170170

171-
```azurecli
171+
```azurecli-interactive
172172
az storage blob upload-batch \
173173
--destination <container> \
174174
--source <source-directory> \
@@ -229,7 +229,7 @@ If a blob's access tier is inferred from the default account access tier setting
229229

230230
To determine a blob's access tier and whether it's inferred from Azure PowerShell, retrieve the blob, then check its **AccessTier** and **AccessTierInferred** properties.
231231

232-
```azurepowershell
232+
```azurepowershell-interactive
233233
$rgName = "<resource-group>"
234234
$storageAccount = "<storage-account>"
235235
$containerName = "<container>"
@@ -251,7 +251,7 @@ $blob.BlobProperties.AccessTierInferred
251251

252252
To determine a blob's access tier and whether it's inferred from Azure CLI, retrieve the blob, then check its **blobTier** and **blobTierInferred** properties.
253253

254-
```azurecli
254+
```azurecli-interactive
255255
az storage blob show \
256256
--container-name <container> \
257257
--name <blob> \
@@ -300,7 +300,7 @@ To change a blob's tier to a cooler tier in the Azure portal, follow these steps
300300

301301
To change a blob's tier to a cooler tier 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:
302302

303-
```azurepowershell
303+
```azurepowershell-interactive
304304
# Initialize these variables with your values.
305305
$rgName = "<resource-group>"
306306
$accountName = "<storage-account>"
@@ -322,7 +322,7 @@ $blob.BlobClient.SetAccessTier($tier, $null, "Standard")
322322

323323
To change a blob's tier to a cooler tier 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:
324324

325-
```azurecli
325+
```azurecli-interactive
326326
az storage blob set-tier \
327327
--account-name <storage-account> \
328328
--container-name <container> \
@@ -368,7 +368,7 @@ N/A
368368

369369
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:
370370

371-
```azurepowershell
371+
```azurepowershell-interactive
372372
# Initialize these variables with your values.
373373
$rgName = "<resource-group>"
374374
$accountName = "<storage-account>"
@@ -395,7 +395,7 @@ Start-AzStorageBlobCopy -SrcContainer $srcContainerName `
395395

396396
To copy a blob to a warmer tier 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:
397397

398-
```azurecli
398+
```azurecli-interactive
399399
az storage blob copy start \
400400
--source-container <source-container> \
401401
--source-blob <source-blob> \
@@ -436,7 +436,7 @@ N/A
436436

437437
#### [PowerShell](#tab/azure-powershell)
438438

439-
```azurepowershell
439+
```azurepowershell-interactive
440440
# Initialize these variables with your values.
441441
$rgName = "<resource-group>"
442442
$accountName = "<storage-account>"
@@ -475,7 +475,7 @@ N/A
475475

476476
#### [Azure CLI](#tab/azure-cli)
477477

478-
```azurecli
478+
```azurecli-interactive
479479
az storage blob list --account-name $accountName --account-key $key \
480480
--container-name $containerName --prefix $folderName \
481481
--query "[?properties.blobTier == 'Cool'].name" --output tsv \

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Changing a blob's tier from a warmer tier to a cooler one is instantaneous, as i
124124

125125
Keep in mind the following points when changing a blob's tier:
126126

127-
- You can't use **Set Blob Tier** to archive a a blob that uses an encryption scope. You can only use **Set Blob Tier** to move between online access tiers. For more information about encryption scopes, see [Encryption scopes for Blob storage](encryption-scope-overview.md).
127+
- You can't use **Set Blob Tier** to archive a blob that uses an encryption scope. You can only use **Set Blob Tier** to move between online access tiers. For more information about encryption scopes, see [Encryption scopes for Blob storage](encryption-scope-overview.md).
128128

129129
- If a blob is explicitly moved to the cool or cold tier and then moved to the archive tier, the early deletion charge applies.
130130

@@ -211,12 +211,12 @@ The cold tier requires the following minimum versions of REST, SDKs, and tools
211211
| Environment | Minimum version |
212212
|---|---|
213213
| [REST API](/rest/api/storageservices/blob-service-rest-api)| 2021-12-02 |
214-
| [.NET](/dotnet/api/azure.storage.blobs) | 12.15.0 |
215-
| [Java](/java/api/overview/azure/storage-blob-readme) | 12.21.0 |
216-
| [Python](/python/api/azure-storage-blob/) | 12.15.0 |
217-
| [JavaScript](/javascript/api/preview-docs/@azure/storage-blob/) | 12.13.0 |
218-
| [PowerShell (Az.Storage)](/powershell/azure/install-azure-powershell) | 5.8.0 |
219-
| [Azure CLI](/cli/azure/install-azure-cli) | 2.50.0 |
214+
| [.NET](/dotnet/api/overview/azure/storage) | 12.15.0 |
215+
| [Java](/java/api/overview/azure/storage) | 12.21.0 |
216+
| [Python](/python/api/overview/azure/storage) | 12.15.0 |
217+
| [JavaScript](/javascript/api/overview/azure/storage) | 12.13.0 |
218+
| [PowerShell (Az.Storage)](/powershell/module/az.storage) | 5.8.0 |
219+
| [Azure CLI](/cli/azure/storage) | 2.50.0 |
220220
| [AzCopy](../common/storage-use-azcopy-v10.md) | 10.18.1 |
221221
| [Azure Storage Explorer](quickstart-storage-explorer.md) | 1.29.0 |
222222

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

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,56 @@ Smart tier is configured on the [default account access tier](access-tiers-overv
3737
You can move objects out of smart tier by setting a different online tier or changing the default account access tier to another tier. Once moved to an explicit tier, objects can't be tiered back to smart tier.
3838
To set the default access tier setting for a storage account, see [Set a blob's access tier](access-tiers-online-manage.md)
3939

40+
#### [Portal](#tab/azure-portal)
41+
42+
To set the default access tier to *Smart* for a storage account at create time in the Azure portal, follow these steps:
43+
44+
1. Navigate to the **Storage accounts** page, and select the **Create** button.
45+
46+
2. Fill out the **Basics** tab.
47+
48+
3. On the **Advanced** tab, under **Blob storage**, set the **Access tier** to *Smart*.
49+
50+
4. Select **Review + Create** to validate your settings and create your storage account.
51+
52+
:::image type="content" source="media/access-tiers-online-manage/set-default-access-tier-create-portal-smart.png" alt-text="Screenshot showing how to set the default access tier to Smart when creating a storage account.":::
53+
54+
To update the default access tier to *Smart* for an existing storage account in the Azure portal, follow these steps:
55+
56+
1. Navigate to the storage account in the Azure portal.
57+
58+
2. Under **Settings**, select **Configuration**.
59+
60+
3. Locate the **Blob access tier (default)** setting, and select *Smart*. The default setting is *Hot*, if you have not previously set this property.
61+
62+
4. Save your changes.
63+
64+
#### [PowerShell](#tab/azure-powershell)
65+
66+
To configure `Smart` as the default access tier setting for a storage account with PowerShell, call the Azure REST API directly.
67+
68+
```azurepowershell-interactive
69+
# Set variables
70+
$SubscriptionId = <subscription-id>
71+
$ResourceGroup = <resource-group>
72+
$StorageAccountName = <storage-account-name>
73+
74+
# Update the storage account access tier to Smart
75+
$Path = "/subscriptions/$SubscriptionId/resourceGroups/$ResourceGroup/providers/Microsoft.Storage/storageAccounts/${StorageAccountName}?api-version=2025-08-01"
76+
$Payload = @{ properties = @{ accessTier = "Smart" } } | ConvertTo-Json -Depth 3
77+
78+
Invoke-AzRestMethod -Method PATCH -Path $Path -Payload $Payload
79+
```
80+
81+
#### [Azure CLI](#tab/azure-cli)
82+
83+
To configure `Smart` as the default access tier setting for a storage account with Azure CLI, call the Azure REST API directly.
84+
85+
```azurecli-interactive
86+
az rest --method patch --url "https://management.azure.com/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.Storage/storageAccounts/<storage-account-name>?api-version=2025-08-01" --body '{"properties":{"accessTier":"Smart"}}'
87+
```
88+
89+
---
4090

4191
## Working with smart tier
4292
All smart tiered objects are automatically managed across the underlying capacity tiers - hot, cool, and cold. Smart tier leverages the regular hot, cool, and cold access tiers in the background. These tiers are called the capacity tier. Smart tier doesn't support the archive tier or premium storage accounts. It works only on block blobs, page blobs aren't supported.
11.1 KB
Loading

0 commit comments

Comments
 (0)