question

Stefan-9745 avatar image
0 Votes"
Stefan-9745 asked vipullag-MSFT commented

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

Hey,

Part 3 of the tutorial: https://docs.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://docs.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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Stefan-9745 avatar image
1 Vote"
Stefan-9745 answered vipullag-MSFT commented

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Stefan-9745

Thanks for updating back with the issue resolution for the benefit of community.

0 Votes 0 ·