Exercise 4: Creating Azure Container Instances (ACI)
This exercise will guide you through the process of creating an ACI using the previously created webapp:v2
container image. This exercise assumes you have completed the previous two exercises of this chapter.
Task 1: Enabling the ACR Admin User
Follow these steps to enable the built-in admin user account on ACR, which is required when you want to run container instances using ACI directly from images stored in ACR:
- First, update ACR to enable the admin user with the following:
az acr update -n "<acr name>" --admin-enabled true
Note the use of
-n
instead of--name
. The short versions of arguments are available across many resource types. - Go to ACR within the Azure portal and, on the Access keys blade, note that the admin user is enabled with some credentials listed. Note also that the username is the same as the registry name.
- Although you can view the credentials in the portal, get the password...