Microsoft Azure Developer Associate AZ-204 Practice Question
You have an Azure Container Registry named contosoacr. Source code for a microservice is stored in a public GitHub repository. You need Azure to build the container image directly in the registry and tag it with the current run ID, without installing Docker on your workstation. Which Azure CLI command should you run?
az container create --registry-login-server contosoacr.azurecr.io --image microservice:{{.Run.ID}} --context https://github.com/contoso/microservice.git
az acr import --name contosoacr --source https://github.com/contoso/microservice.git --image microservice:{{.Run.ID}}
az acr task run --registry contosoacr --context https://github.com/contoso/microservice.git --image microservice:{{.Run.ID}}
az acr build --registry contosoacr --image microservice:{{.Run.ID}} https://github.com/contoso/microservice.git