Reputation: 331
I'm following the below tutorial to push docker image to my ACR. I'm authenticating using AAD service principal. The article mentions the steps to authenticate when the AAD service principal has a password, mine has a certificate not a password.
I tried converting the cert pfx to bytes then base64 encode it and pass it as password to docker login command but that didn't work, I got authentication error.
Upvotes: 1
Views: 1979
Reputation: 331
I found the answer here: https://github.com/Azure/acr/blob/master/docs/AAD-OAuth.md The steps involve using the AAD token to get an access token from ACR, then use that one to pull/push using docker CLI
Upvotes: 0