Share via

Failed to provision revision for container app 'app-name'. Error details: Identity with resource ID 'system-environment' not found for registry registry-name.. (Code: ContainerAppOperationError)

Seelam, Bharath 0 Reputation points
2026-03-16T11:10:53.64+00:00

I have a private Azure Container Registry and I am deploying a container app which pulls image from the registry. The container app uses a user assigned managed identity with AcrPull Permissions on the registry and the user assigned managed identity is configured on the Container Apps Environment. The container app is successfully pulling image from the registry and getting deployed in one environment(like dev env), but getting the below error while deploying in another environment(like stage env). Is this a bug from Azure Side ??

{

"code": "ContainerAppOperationError",

"message": "Failed to provision revision for container app '<app-name>'. Error details: Identity with resource ID 'system-environment' not found for registry <registry-name>"

}

Azure Container Apps
Azure Container Apps

An Azure service that provides a general-purpose, serverless container platform.


2 answers

Sort by: Most helpful
  1. Praveen Kumar Gudipudi 2,275 Reputation points Microsoft External Staff Moderator
    2026-03-16T11:50:33.6366667+00:00

    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.

     

    0 comments No comments

  2. Q&A Assist
    2026-03-16T11:11:14.4433333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error indicates that the container app is configured to use a managed identity named system-environment for the registry, but that identity does not exist or is not correctly configured in the staging environment. It is an environment/configuration issue, not a general Azure bug.

    Key points from the platform behavior:

    • To pull from Azure Container Registry using managed identity, the identity must be:
      • Enabled on the container app (system-assigned or user-assigned), and
      • Granted the AcrPull role on the target registry.
    • When using managed identity with a registry in Container Apps, the registry configuration must reference either:
      • system for the system-assigned identity, or
      • The resource ID of a user-assigned identity.

    In the working (dev) environment, the configuration and identity assignments are correct. In the failing (stage) environment, the registry configuration is trying to use an identity with resource ID system-environment, which is not a valid built-in keyword (system is) and does not match an existing user-assigned identity resource ID.

    To fix the staging environment:

    1. Verify the managed identity on the container app:
      • Ensure the correct user-assigned identity is added to the container app (or system-assigned identity is enabled) in the staging environment.
      • For system-assigned identity, configure it as shown in the managed identity documentation (Identity → System assigned → On, or via az containerapp identity assign --system-assigned).
    2. Verify AcrPull role assignment:
      • Confirm that the same identity (system or user-assigned) has the AcrPull role on the staging registry, similar to the documented pattern:
        • Assign AcrPull to the identity principal ID at the registry scope.
    3. Correct the registry configuration for the container app in staging:
      • If using system-assigned identity, ensure the registry is configured with identity: system (not system-environment) as in the documented az containerapp registry set example.
      • If using a user-assigned identity, ensure the registry configuration uses the user-assigned identity’s resource ID, not a placeholder or environment name.
    4. Redeploy or create a new revision after fixing the identity/registry configuration so the platform can provision the revision and pull the image successfully.

    This mismatch between the identity reference (system-environment) and actual identities configured in the staging environment is the cause of the error.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.