Skip to content

Commit b33f440

Browse files
authored
Merge pull request #203471 from alexandair/an-az-acr-skus
Add PowerShell code
2 parents 44098c2 + c34fb9d commit b33f440

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

articles/container-registry/container-registry-skus.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Throttling could occur temporarily when you generate a burst of image pull or pu
6060

6161
## Show registry usage
6262

63-
Use the [az acr show-usage](/cli/azure/acr#az-acr-show-usage) command, or the [List Usages](/rest/api/containerregistry/registries/list-usages) REST API, to get a snapshot of your registry's current consumption of storage and other resources, compared with the limits for that registry's service tier. Storage usage also appears on the registry's **Overview** page in the portal.
63+
Use the [az acr show-usage](/cli/azure/acr#az-acr-show-usage) command in the Azure CLI, [Get-AzContainerRegistryUsage](/powershell/module/az.containerregistry/get-azcontainerregistryusage) in Azure PowerShell, or the [List Usages](/rest/api/containerregistry/registries/list-usages) REST API, to get a snapshot of your registry's current consumption of storage and other resources, compared with the limits for that registry's service tier. Storage usage also appears on the registry's **Overview** page in the portal.
6464

6565
Usage information helps you make decisions about [changing the service tier](#changing-tiers) when your registry nears a limit. This information also helps you [manage consumption](container-registry-best-practices.md#manage-registry-size).
6666

@@ -89,7 +89,15 @@ There is no registry downtime or impact on registry operations when you move bet
8989
To move between service tiers in the Azure CLI, use the [az acr update][az-acr-update] command. For example, to switch to Premium:
9090

9191
```azurecli
92-
az acr update --name myregistry --sku Premium
92+
az acr update --name myContainerRegistry --sku Premium
93+
```
94+
95+
### Azure PowerShell
96+
97+
To move between service tiers in Azure PowerShell, use the [Update-AzContainerRegistry][update-azcontainerregistry] cmdlet. For example, to switch to Premium:
98+
99+
```azurepowershell
100+
Update-AzContainerRegistry -ResourceGroupName myResourceGroup -Name myContainerRegistry -Sku Premium
93101
```
94102

95103
### Azure portal
@@ -124,6 +132,7 @@ Submit and vote on new feature suggestions in [ACR UserVoice][container-registry
124132

125133
<!-- LINKS - Internal -->
126134
[az-acr-update]: /cli/azure/acr#az_acr_update
135+
[update-azcontainerregistry]: /powershell/module/az.containerregistry/update-azcontainerregistry
127136
[container-registry-geo-replication]: container-registry-geo-replication.md
128137
[container-registry-storage]: container-registry-storage.md
129138
[container-registry-delete]: container-registry-delete.md

0 commit comments

Comments
 (0)