equivalent command for azure x gcloud

3/30/2020

I was wondering what the equivalent command for azure would be:

 cloud auth configure-docker

I'm trying to use a "docker push" inside azure kubernetes but I can't because it asks for authentication.

-- Felipe FB
azure-functions
azure-kubernetes
docker

1 Answer

4/2/2020

I believe the az acr login command should be the equivalent to that. There are different ways to authenticate as documented.

You will likely want to go the service principal route but if you using AAD Pod Identity, then I believe you could go the managed identity route which is usually better since service principals have a one year expiry for their passwords.

-- PramodValavala-MSFT
Source: StackOverflow