Attempting to deploy a Container app - Azure API says no.

TH-4622 40 Reputation points
2025-04-14T15:08:25.1233333+00:00

I am attempting to deploy an Azure Container App via Terraform but the Azure API is returning the following. Can anyone decipher what this means please, or tell me where I can get information on what this issue could be? It's essentially one of the MS demo apps, but being deployed with Terraform instead of Bicep, and using private endpoints. It seems to think there's a invalid name but the name matches exactly. There is a managed identity which is also referenced correctly.

API Response:

{"id":"/subscriptions/

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
625 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Abiola Akinbade 27,060 Reputation points
    2025-04-14T15:18:54.5733333+00:00

    Hello TH-4622

    Thanks for your question
    It is either:

    Your managed identity does not have the correct permissions to perform this. The managed identity needs the AcrPull role on your ACR or your container app is no configured to use it.

    Also the error shows both "appname.azurecr.io" and "app-name-here.azurecr.io" is this correct?

    Check that the image exists in your ACR

    az acr repository show-tags --name appname --repository img-search-nodejs-app

    Also check your terraform to check that the registry name is correct. Looks like 2 different names.

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Please note: If you have Priority Community support please wait for a dedicated Microsoft support representative to assist you, as they have access to the necessary backend resources.

    Regards,

    Abiola


Your answer

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