Azure Function App not bind correctly Identity under Deployment section

Felipe Agrela 0 Reputation points
2025-05-27T19:00:38.2866667+00:00

We have a container function app being deployed and we have System Assigned identity enabled on it, during the deployment we have a group with Acr Pull role and we associate that function to this group. When the deploy finish we don't have it correctly working because the dropdown list of Identity under the Deployment section is blank and not system assigned as it should be.
User's image

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
{count} votes

1 answer

Sort by: Most helpful
  1. Gaurav Kumar 785 Reputation points Moderator
    2025-06-02T12:00:25.1466667+00:00

    Hi Felipe Agrela,

    Apologies for the delayed response. I’ve reviewed your issue.

    This problem typically occurs when the Deployment Center UI does not correctly bind the system-assigned managed identity, even though it is enabled and has appropriate ACR permissions. Group-based role assignments (like AcrPull) often do not resolve immediately or aren't interpreted properly by the Deployment Center during deployment.

    Try the Below Workaround to resolve the issue:

    Use Azure CLI to Explicitly Bind Identity and Assign Role

    Confirm System-Assigned Identity Is Enabled

    
    az functionapp identity show --name gcm-investmentsrqf-dev --resource-group <RsrGrpNme>
    
    

    Ensure "principalId" is returned, it confirms the identity is enabled.

    Assign AcrPull Role Directly to Identity

    Avoid relying on group membership, assign the AcrPull role directly:

    
    az acr show --name <acr-name> --query id --output tsv
    
    
    
    az role assignment create --assignee <principal-id> --role AcrPull --scope <acr-resource-id>
    
    

    Explicitly Enable Managed Identity for Deployment Center

    az functionapp deployment container config --name gcm-investmentsrqf-dev --resource-group <RsrGrpNme> --enable-managed-identity true
    

    Manually Set Image and Tag in Deployment Center

    Managed Identity disables automatic population of image/tag fields. Manually enter:

    • Image: <acr-name>.azurecr.io/<image-name>
    • Tag: latest or your specific tag

    After completing the above steps:

    • Refresh the Deployment Center in the Azure Portal
    • Confirm the Identity is correctly shown
    • Restart the Function App or trigger a deployment
    • Monitor logs to verify that the container image is pulled successfully

    For more details, please refer the following Microsoft documentation: Authenticate with ACR using managed identity, Configure container deployment (CLI), Assign roles using Azure CLI.

    By following the steps above, the identity binding issue in the Deployment Center will be resolved, and your Function App should successfully pull images from Azure Container Registry.

    Hope it helps!


    Please do not forget to click "Accept the answer” and Yes wherever the information provided helps you, this can be beneficial to other community members.

    If you have any other questions or still running into more issues, let me know in the "comments" and I would be happy to help you.


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.