Bad Gateway for Microsoft.Web/serverfarm when creating Function App
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"
},
{}
]
}
}