Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Application not registered with AAD

Getting below error while logging to container registry

Command:

docker login <MY_REGISTRY_NAME>.azurecr.io 

Error Message:

Error response from daemon: Get https://<MY_REGISTRY_NAME>.azurecr.io/v2/: unauthorized: Application not registered with AAD 
like image 486
Rajesh M Avatar asked Dec 16 '20 02:12

Rajesh M


People also ask

How do I register my Azure AD application?

In the Azure portal, select Azure Active Directory in the left pane and select App registrations and click on New registration. In the Register an application page, enter your application's registration information: In the Name section, enter a meaningful application name that will be displayed to the users.

How and why applications are added to Azure AD?

Applications are added to Azure AD to leverage one or more of the services it provides including: Application authentication and authorization. User authentication and authorization. SSO using federation or password.

How do you authenticate an ACR?

Individual login with Azure AD. When you log in with az acr login , the CLI uses the token created when you executed az login to seamlessly authenticate your session with your registry. To complete the authentication flow, the Docker CLI and Docker daemon must be installed and running in your environment.

What is the recommended authentication method for Azure container registry?

When authenticating with an Azure container registry, there are two primary scenarios: individual authentication, and service (or "headless") authentication. The following table provides a brief overview of these scenarios, and the recommended method of authentication for each.


1 Answers

Go to Access Keys in Container Registry and enable the admin user, then use the autogenerated credentials to login via Docker

like image 98
Anudeepa Avatar answered Sep 23 '22 21:09

Anudeepa