Why am I unable to link container app as a backend api on a static web app?

Ada Graves 0 Reputation points
2025-03-05T17:00:44.5533333+00:00

I have a functions app, hosted as a container app. I'm trying to use it as the api of a static web app. When I go to link it, I get an error stating that I don't have permission due to a deny assignment on the resource group. When I created the function app, the function app is in the resource I assigned it, but the container app that was automatically generated to host it was put into an automatically generated resource group that I can't edit. I can't even move the container app out of that resource group. The function app version of the app doesn't even show up as an option to link, just the container app version in this weird resource group.

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

1 answer

Sort by: Most helpful
  1. Loknathsatyasaivarma Mahali 630 Reputation points Microsoft External Staff
    2025-03-05T18:16:51.37+00:00

    Hello Ada Graves,

    Thanks for posting your concerns on Microsoft Q&A platform.

    It seems that you are encountering permission issues due to a deny assignment on the resource group where your container app is located. Since the container app was automatically generated and placed in a resource group that you cannot edit, this is likely preventing you from linking it as the backend API for your static web app. 

    To resolve this, you may need to check the permissions associated with the resource group and ensure that you have the necessary access rights to link the container app. Additionally, since the container app is in a different resource group, you should verify if there are any policies or restrictions that prevent linking resources across different resource groups. 

    If you're unable to change the permissions or move the container app, consider creating a new container app in a resource group where you have full control, or consult with your Azure administrator for further assistance. 

    Note: Azure Container Apps requires the Static Web Apps Standard plan, so ensure that your static web app is on the correct plan as well.
    Also, for your better understanding please refer the below document.
    API support in Azure Static Web Apps with Azure Container Apps


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.