You are preparing to deploy a containerized application to Azure Container Instances (ACI). The container image is stored in a private Azure Container Registry (ACR). You need to configure the container group to pull the image from the registry using a managed identity to avoid using container registry credentials.
Which managed identity configuration must you use to allow the container group to pull the image?
- A user-assigned managed identity, because the identity must exist and have the appropriate permissions before Azure Container Instances initiates the image pull.Cevap
- BA system-assigned managed identity, because the container group automatically creates the identity before initiating the image pull from the registry.
- CA system-assigned managed identity, because it is the only managed identity type supported for authenticating with private container registries.
- DA user-assigned managed identity, but you must also enable the admin user account on the Azure Container Registry to authenticate the image pull.
Cevap
A user-assigned managed identity must be used because the identity must exist and have the appropriate permissions before Azure Container Instances initiates the image pull.
The correct answer is the option stating that a user-assigned managed identity must be used because the identity must exist and have the appropriate permissions before Azure Container Instances initiates the image pull. Because ACI needs to authenticate with ACR to retrieve the container image before the container group resource is fully provisioned, a system-assigned identity (which is only generated after the container group exists) cannot be used.
Adım Adım Çözüm
Anahtar Kavram
Managed Identity Authentication for Container Image Pulls in Azure Container Instances