I've been trying to push my docker images into my Organization's Azure container registry but it's failing again and again with 401 error. I knew 401 error is with respect to authentication/authorization but I tried giving both "Azure Service Principal ID" which has contributor access to ACR and also "Azure container registry admin access keys". End result is same, getting 401 unauthorized error.
I presume "Contributor" role to ACR is more than enough to play around with it as it will have pretty much all privileges.
Also what confusing me more is getting 401 error even if I use ACR Admin access keys which I believe will have all sufficient privileges.
I tried to replicate the same scenario with my own azure account where I didn't get this error. I tried all possibilities and everything worked like charm in my account.
Am I missing something or going wrong anywhere?
AcrPush
is enough. How are you pushing your image ? through devops pipeline ? – Thomasaz acr login --name YourContainerRegistryName
before pushing to container registry? – hafij