A developer is deploying a new containerized API to Azure Container Apps. The container image is hosted in a private Azure Container Registry (ACR). Which of the following configurations is required to enable the Container App to pull the image from the private registry?
- Configure a managed identity on the Container App and grant it the AcrPull role on the Azure Container Registry.Cevap
- BRun the `az acr login` command on the local development machine prior to deploying the Container App.
- CConfigure the Azure Container Registry with a system-assigned managed identity pointing to the Container App.
- DCreate an Azure Key Vault access policy that grants the Azure Container Registry GET access to the Container App's secrets.
Cevap
Configure a managed identity on the Container App and grant it the AcrPull role on the Azure Container Registry.
The correct configuration requires assigning a managed identity to the Container App and granting that identity the AcrPull role on the Azure Container Registry. This ensures the Container App has the necessary runtime permissions to authenticate and download the container image securely.
Adım Adım Çözüm
Anahtar Kavram
Azure Container App private registry authentication using managed identities