Created
October 3, 2020 12:13
-
-
Save donchev7/a53a4d0f3612cbfcab98d5381771c2cc to your computer and use it in GitHub Desktop.
Move images between 2 Azure ACR registries
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
# Source ACR | |
repositories=$(az acr repository list -n <sourceACRName>) | |
for r in $repositories; do az acr repository show-manifests -n <sourceACRName> --repository $r ; done | |
cat response.json | jq -r '.[].tags[0]' | grep -v null | xargs -n 1 -I % sh -c "az acr import -n <sourceACRName> --source $REPO:% --image $REPO:% --registry <scopeId>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment