Stuck on Container Instance tutorial: <service-principal-ID> and <service-principal-password>

Stefan 11 Reputation points
2022-05-20T14:28:30.233+00:00

Hey,

Part 3 of the tutorial: https://learn.microsoft.com/en-us/azure/container-instances/container-instances-tutorial-deploy-app

I'm stuck on the tutorial for creating and deploying a container image. I made it to the 'Deploy Container' part of the tutorial, where the command is

'az container create --resource-group myResourceGroup --name aci-tutorial-app --image <acrLoginServer>/aci-tutorial-app:v1 --cpu 1 --memory 1 --registry-login-server <acrLoginServer> --registry-username <service-principal-ID> --registry-password <service-principal-password> --ip-address Public --dns-name-label <aciDnsLabel> --ports 80'

And its the service principal ID and Password that's confusing me. What are they? The tutorial text says 'Replace <service-principal-ID> and <service-principal-password> with the service principal ID and password that you created to access the registry.' If that refers to my azure email and password that I used, I tried that and couldn't get through.

Part 2 (https://learn.microsoft.com/en-us/azure/container-instances/container-instances-tutorial-prepare-acr) contains the commands I used to create and log in to a container registry, but I see no mention of a password.

Thanks!

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
388 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Stefan 11 Reputation points
    2022-05-20T15:58:06.373+00:00

    I solved this by going into the Azure portal, finding my Registry and looking at the Access Keys blade for the password. But this password is auto generated and I never saw it in what the Terminal returned back to me after following this tutorial.

    1 person found this answer helpful.