MicrosoftLearning / AZ-204-DevelopingSolutionsforMicrosoftAzure

AZ-204: Developing solutions for Microsoft Azure
https://microsoftlearning.github.io/AZ-204-DevelopingSolutionsforMicrosoftAzure/
MIT License
2.29k stars 1.85k forks source link

Lab 14: Implement containerized solutions ( Exercise 1- Task 4) #828

Open prabhjotsinghbakshi opened 1 month ago

prabhjotsinghbakshi commented 1 month ago

Exercise 1- Task 4- Description of issue ACI instane Public IP and FQDN not displayed ( not getting created) Solution is to take Powershell approach

solution to IP address is here- Create the ACI with Powershell (use the same name of cotainer aci proposed by LOD instruction and yoou already have ACR details ( ACR imge repo, pwd, admin user)

az container create --resource-group acr-sam-rg-lod4442xyz --name acisam444xyz --image acrsam444xyz.azurecr.io/imagename:latest --registry-login-server acrsam4xyz.azurecr.io --registry-username acrsam4442xyz --registry-password bHOgkOIZ0fu7t8SDkxXcKI0lpC6Qyp3+ACRDgjIxT --dns-name-label prabhjot --ports 5151 80

below i try to break it down

az container create --resource-group --name --image acrsam4442xyz1.azurecr.io/imagename:latest --registry-login-server acrsam4442xyz1.azurecr.io --registry-username acrsam4442xyz --registry-password bHOgkOIZ0fuo+YSuFAxKI0lpC6Qyp3+ACRDgjIxT --dns-name-label --ports 5151 80