This will not use AAD auth and will fail even if I'm logged (az login) in and have owner access to both ACRs, because AAD auth will not be used for the source ACR (it will only respect user/password):
az acr import --name target --source source.azurecr.io/foo:bar
However this will succeed:
az acr import --name target --registry /subscriptions/XXX/resourceGroups/YYY/providers/Microsoft.ContainerRegistry/registries/source --source foo:bar
IMHO That is not trivial to understand from the docs.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: c608162e-cf40-9d53-da4a-51f51a0311ea
Version Independent ID: eccbb543-be68-7de2-d41d-abee55c81452
This will not use AAD auth and will fail even if I'm logged (
az login
) in and have owner access to both ACRs, because AAD auth will not be used for the source ACR (it will only respect user/password):az acr import --name target --source source.azurecr.io/foo:bar
However this will succeed:
az acr import --name target --registry /subscriptions/XXX/resourceGroups/YYY/providers/Microsoft.ContainerRegistry/registries/source --source foo:bar
IMHO That is not trivial to understand from the docs.Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.