How to fix a bad gateway status when trying to create a function app

Valentino Rivera 0 Reputation points
2024-11-07T01:01:19.87+00:00

This is the failure code:

{ "status": "Failed", "error": { "code": "Forbidden", "message": "The subscription '1ac4d6cb-e3ad-4d74-aa81-6d7895a1abde' is not allowed to create or update the serverfarm.", "details": [ { "message": "The subscription '1ac4d6cb-e3ad-4d74-aa81-6d7895a1abde' 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,932 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 29,276 Reputation points
    2024-11-07T06:20:16.3166667+00:00

    @Valentino Rivera Thanks for reaching out. Ensure that your subscription has the necessary permissions to create or update the server farm. You can check the permissions by going to the Access control (IAM) tab in the Azure portal and verifying that the subscription has the Contributor or Owner role assigned to it if not you might need to contact your Azure administrator to grant the required permissions.

    Some regions might have restrictions on certain subscription types. Try creating the Function App in a different region to see if that resolves the issue.

    please try and let me if the issue still persists.

    0 comments No comments

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.