An Azure service that provides a general-purpose, serverless container platform.
Hello Seelam, Bharath,
This behavior is typically not an Azure bug, but rather a configuration difference between environments.
The error message indicates that the Container App is attempting to use the environment system identity (system-environment) to authenticate with the private Azure Container Registry (ACR):
Identity with resource ID 'system-environment' not found for registry <registry-name>
Even though a User Assigned Managed Identity (UAMI) with AcrPull permissions is configured, the container app in the failing environment appears to be referencing the environment identity instead of the user-assigned identity.
In the environment where deployment succeeds (e.g., Dev), one of the following is likely true:
- The container app registry configuration explicitly references the User Assigned Managed Identity, or
The Container Apps Environment system-assigned identity is enabled and has AcrPull permission on the ACR.
In the environment where deployment fails (e.g., Stage), the container app registry configuration is likely set to:
identity: system-environment
If the Container Apps Environment system identity is not enabled, Azure cannot resolve this identity and the revision provisioning fails.
Recommended checks:
Verify the container app registry configuration:
az containerapp show --name <app-name> --resource-group <rg> --query properties.configuration.registries
If the output shows:
"identity": "system-environment"
then the app is using the environment identity.
If you intend to use the User Assigned Managed Identity, explicitly configure it for the registry:
az containerapp registry set --name <app-name> --resource-group <rg> --server <registry-name>.azurecr.io --identity <user-managed-identity-resource-id>
Alternatively, enable the system-assigned identity on the Container Apps Environment and grant it the AcrPull role on the ACR.
Once the registry authentication identity is aligned with the identity that actually exists in the environment, the container app revision should provision successfully.
Please accept as answer and do a Thumbs-up to upvote this response if you are satisfied with the community help. Your upvote will be beneficial for the community users facing similar issues.