Bad Gateway for Microsoft.Web/serverfarm when creating Function App

Kyle Stankovich 0 Reputation points
2025-04-21T21:57:42.6533333+00:00

Hello. We are having trouble creating an Azure Function app within Azure. My own account has "Contributor" access. Another team member's account has both "Owner" and "Contributor" access to the same subscription.

When either of us try to create a function app, the actual deployment step fails with a "BadGateway" error. Below are the details of the deployment. Note that we stripped out all self identifying IDs.

Operation ID: /subscriptions/xxxx-xxxx-xxxx/resourceGroups/DataHub/providers/Microsoft.Resources/deployments/Microsoft.Web-FunctionApp-Portal-xxxx-xxxx/operations/FFFFFFFFFFFF

Operation Name: FFFFFFFFFFFF
Provisioning Operation: Create

Provisioning state: Running

Timestamp: 4/21/2025, 4:43:05 PM

Duration: 16 seconds

Tracking ID: xxxx-xxxx-xxxx

ServiceRequestId: xxxx-xxxx-xxxx

Status: BadGateway

Type: Microsoft.Web/serverfarms

Resource ID: /subscriptions/xxxx-xxxx-xxxx/resourceGroups/DataHub/providers/Microsoft.Web/serverfarms/ASP-DataHub-939c

Resource: ASP-DataHub-939c

Deployment Correlation ID: xxxx-xxxx-xxxx

Status Message:

{

"status": "Failed",

"error": {

"code": "Forbidden",

"message": "The subscription 'xxxx-xxxx-xxxx' is not allowed to create or update the serverfarm.",

"details": [

{

"message": "The subscription 'xxxx-xxxx-xxxx' is not allowed to create or update the serverfarm."

},

{

"code": "Forbidden"

},

{}

]

}

}

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

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.