Hello Hannes Sachsenhofer,
As Prrudram-MSFT mentioned, you can use the command az acr show-usage
. An example output of this command is provided below, which allows you to compare the differences in value[0].currentValue
before and after executing the acr purge
command.
{
"value": [
{
"currentValue": 3564,
"limit": 10737418240,
"name": "Size",
"unit": "Bytes"
},
{
"currentValue": 0,
"limit": 2,
"name": "Webhooks",
"unit": "Count"
},
{
"currentValue": 0,
"limit": 100,
"name": "ScopeMaps",
"unit": "Count"
},
{
"currentValue": 0,
"limit": 100,
"name": "Tokens",
"unit": "Count"
}
]
}
Additionally, you can pair this with the following command to individually list the sizes occupied by each image, helping you understand the status of image deletions.
az acr manifest list-metadata --registry <your_acr_name> --name hello-world --query '[].{Size: imageSize, Digest:digest, Tags: tags}'
Best regards,
Charlie
If you find my response helpful, please consider accepting this answer
and voting yes
to support the community. Thank you!