"The subscription <subscription id> is not allowed to create or update the serverfarm." error when deploying an app service.

PauloBodanezeReva-4478 45 Reputation points
2024-02-17T01:14:43.19+00:00

I'm trying to deploy an App Service on Azure but im stuck in the deployment. I dont know if the operation with a BadGateway will stall the deployment or not. User's image

When i click Operation Details the following JSON is displayed:

{
    "status": "Failed",
    "error": {
        "code": "Forbidden",
        "message": "The subscription '<subscription id>' is not allowed to create or update the serverfarm.",
        "details": [
            {
                "message": "The subscription '<subscription id>' is not allowed to create or update the serverfarm."
            },
            {
                "code": "Forbidden"
            },
            {}
        ]
    }
}
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,903 questions
{count} votes

Accepted answer
  1. Marcin Policht 11,005 Reputation points MVP
    2024-02-17T02:47:12.2533333+00:00

2 additional answers

Sort by: Most helpful
  1. Guilherme Camarotto 0 Reputation points
    2024-04-24T15:30:40.0933333+00:00

    I was able to create tha app service directly from visual studio publish feature. just select Azure as the destiantion of the publish and configure a new app service from there. and worked here

    0 comments No comments

  2. Gati 0 Reputation points
    2024-04-25T14:50:49.5633333+00:00
    {
        "status": "Failed",
        "error": {
            "code": "Forbidden",
            "message": "The subscription '*******************6664' is not allowed to create or update the serverfarm.",
            "details": [
                {
                    "message": "The subscription '***********6664' is not allowed to create or update the serverfarm."
                },
                {
                    "code": "Forbidden"
                },
                {}
            ]
        }
    }
    
    0 comments No comments