Created
February 4, 2022 18:49
-
-
Save joaocc/b9240a5db909ba02e168ecd69345fa19 to your computer and use it in GitHub Desktop.
Cleaning up AzureML images from Azure Container Registry (ACR)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ACR_NAME="${ACR_NAME:-myacr}" | |
az acr show-usage -n "${ACR_NAME}" -o json | |
DK_IMAGES=( | |
"azureml/azureml_00000000111111110000000011111111" | |
"azureml/azureml_11111111000000001111111100000000" | |
) | |
for i in "${DK_IMAGES[@]}" | |
do | |
az acr repository delete -y -n "${ACR_NAME}" --image $i || true | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment