I have an Azure Container App that I created that I want to pull it's image from a private Azure Container Registry using a either a system assigned or user assigned identity but the Container App fails to pull the image. I have followed these instructions: https://learn.microsoft.com/en-us/azure/container-apps/managed-identity-image-pull?tabs=azure-cli
I have tried with both a system-assigned or user-assigned managed identity. Each time I try I get an error. Here's the error from using the user assigned identity: "The following field(s) are either invalid or missing. Field 'template.containers.MY-CONTAINER_NAME.image' is invalid with details: 'Invalid value: "MY-ACR.azurecr.io/MY-REPOSITORY:latest": unable to pull image using Managed identity /subscriptions/01234567-0123-4567-89ab-cdef01234567/resourcegroups/MY-RESOURCE-GROUP/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MY-USER-ASSIGNED-ID for registry MY-ACR.azurecr.io';
I have both the user assigned identity and the system assigned identity granted the AcrPull role on the Azure Container Registry I am using.
Anyone have other suggestions on what to try next?