Skip to content

Commit d849be0

Browse files
{ACR} az acr show-usage: Add examples for MaximumStorageCapacity and Size query (#32263)
1 parent 46e0b42 commit d849be0

File tree

1 file changed

+6
-0
lines changed
  • src/azure-cli/azure/cli/command_modules/acr

1 file changed

+6
-0
lines changed

src/azure-cli/azure/cli/command_modules/acr/_help.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,12 @@
898898
- name: Get the storage usage for an Azure Container Registry.
899899
text: >
900900
az acr show-usage -n myregistry
901+
- name: Get the current amount of storage used by the registry based on the included storage of its SKU (in bytes).
902+
text: >
903+
az acr show-usage -n myregistry --query "value[?name=='Size'] | [0]"
904+
- name: Get the current amount of storage used by the registry and the maximum storage capacity allowed.
905+
text: >
906+
az acr show-usage -n myregistry --query "value[?name=='MaximumStorageCapacity'] | [0]"
901907
"""
902908

903909
helps['acr task'] = """

0 commit comments

Comments
 (0)