The subscription 'xxx' is not allowed to create or update the serverfarm.

Iago Tambosi 10 Reputation points
2024-04-16T19:28:01.58+00:00

Hi.

I'm having trouble deploying an app service. The configuration is correct, but the deployment is always stuck with the following response:

{
    "status": "Failed",
    "error": {
        "code": "Forbidden",
        "message": "The subscription 'cd24d2b4-521e-48c9-bb6c-d2d2ee7affaa' is not allowed to create or update the serverfarm.",
        "details": [
            {
                "message": "The subscription 'cd24d2b4-521e-48c9-bb6c-d2d2ee7affaa' is not allowed to create or update the serverfarm."
            },
            {
                "code": "Forbidden"
            },
            {}
        ]
    }
}

I also tried the solutions stated in https://stackoverflow.com/questions/78101504/azure-app-service-deployment-failing-the-subscription-xxxx-xxxx-xxxx-is-not-al, but it did not work.

Thanks in advance.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,894 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Grmacjon-MSFT 16,011 Reputation points
    2024-04-17T01:05:10.6266667+00:00

    Hello @Iago Tambosi We are sorry to hear you're facing this issue. what region are you deploying your web application and what tier is your app service plan? Please try deploying it to a different region and that should resolve it. You can learn more about this issue here: https://learn.microsoft.com/en-us/answers/questions/1657059/the-subscription-is-not-allowed-to-create-or-updat

    0 comments No comments

  2. Iago Tambosi 10 Reputation points
    2024-04-17T18:27:39.01+00:00

    The solution was to wait and keep trying to create a new deploy. Eventually, the error went away.

    0 comments No comments