What is the Azure CLI command used to log in to an Azure Container Registry?

1) az login
2) az acr login
3) az container login
4) az registry login

Answer :

Final answer:

The correct Azure CLI command to log in to an Azure Container Registry is 'az acr login'. You must also be logged in to Azure CLI using 'az login' to use this command effectively.

Explanation:

The command used to log in to an Azure Container Registry (ACR) using the Azure Command Line Interface (CLI) is az acr login. When you execute this command, you need to specify the name of the container registry that you want to log into. It can be used along with the --name or -n flag, followed by the name of the container registry.

For example, if your registry name is 'myRegistry', you would use:

az acr login --name myRegistry

Make sure you have the necessary permissions and that you are logged in to the Azure CLI using az login before attempting to log into the ACR.

Learn more about Azure CLI command here:

https://brainly.com/question/32364014

#SPJ11