To address your questions regarding the Azure Container Instance (ACI) and User-Assigned Managed Identity (UAMI) setup for pulling images from a private Azure Container Registry (ACR):
- Is
AcrPullalone sufficient for ACI + User-Assigned Managed Identity?
Yes, theAcrPullrole is necessary for the managed identity to pull images from the ACR. However, ensure that the managed identity is correctly assigned to the ACR and that there are no additional network restrictions that might prevent access. - Are there known limitations or delays when using pre-existing UAMIs with ACI?
There are limitations with Windows containers, which do not support system-assigned managed identity-authenticated image pulls with ACR; only user-assigned identities are supported. Additionally, ensure that the managed identity is properly configured and that the ACI is using the correct API version. - Is
image_registry_credentialstill required even when using managed identity?
When using a managed identity, you typically do not need to specifyimage_registry_credential. The managed identity should handle authentication automatically, provided it has the correct permissions and is configured properly.
If you continue to face issues, verify that the managed identity is assigned correctly and that there are no firewall rules or private endpoint configurations that might be blocking access to the ACR.
References: