Try-This exercise - Sign in to the container registry
Use this Try-This exercise to gain some hands-on experience with Azure Kubernetes Service.
Before pushing and pulling container images, you must sign-in to the registry instance. Sign into the Azure CLI on your local machine, then run the az sign-in command. Specify only the registry resource name when signing in with the Azure CLI.
Note
Don't use the fully qualified sign-in server name.
Note
To complete this procedure, you need an Azure subscription.
Sign into the Azure CLI on your local machine, then run the az sign-in
command.
az login
The output should resemble the image seen here.
Sign-in to the registry using the resource name.
az acr login --name <acrName>
Example:
az acr login --name newregistryapl.azurecr.io
The command returns sign in Succeeded once completed. The output should resemble the image seen here.