Ask Learn Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
You can pull container images from Azure Container Registry using various container management platforms, such as Azure Container Instances, Azure Kubernetes Service, or Docker for Windows or Mac. In this module, you deploy the image to an Azure Container Instance.
Azure Container Registry doesn't support unauthenticated access and requires authentication for all operations. Registries support two types of identities:
Important
The admin account provides a quick option to try a new registry. You can enable the account and use the username and password in workflows and apps that need access. After you've confirmed the registry works as expected, you should disable the admin account and use Microsoft Entra identities to ensure the security of your registry. Don't share the admin account credentials with others.
Enable the admin account on your registry using the az acr update
command.
az acr update -n $ACR_NAME --admin-enabled true
Retrieve the username and password for the admin account using the az acr credential show
command.
az acr credential show --name $ACR_NAME
Take note of the username
and password
values in the output for use in future commands.
Deploy a container instance using the az container create
command. Make sure you replace <admin-username>
and <admin-password>
with your admin username and password from the previous command.
az container create --resource-group learn-acr-rg --name acr-tasks --image $ACR_NAME.azurecr.io/helloacrtasks:v1 --registry-login-server $ACR_NAME.azurecr.io --ip-address Public --location eastus --registry-username <admin-username> --registry-password <admin-password>
Get the IP address of the Azure container instance using the az container show
command.
az container show --resource-group learn-acr-rg --name acr-tasks --query ipAddress.ip --output table
In a separate browser tab, navigate to the IP address of the container. If everything is configured correctly, you should see the following web page:
Having an issue? We can help!
Please sign in to use this experience.
Sign in