Always get "The subscription 'xxxxxxxxxxxxxxxxxxxxxxxx' is not allowed to create or update the serverfarm." when creating function app

Frances 0 Reputation points
2024-11-21T00:23:11.7933333+00:00

I always get an issue while trying to create a function app in Azure. The error message, "The subscription [...] is not allowed to create or update the serverfarm,"

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

1 answer

Sort by: Most helpful
  1. Pinaki Ghatak 4,765 Reputation points Microsoft Employee
    2024-11-22T10:45:13.33+00:00

    Hello @Frances

    This error message usually occurs when you don't have the necessary permissions to create or update a server farm.

    To resolve this issue, you can try the following steps:

    1. Make sure that you have the necessary permissions to create or update a server farm. You need to have the Contributor or Owner role assigned to your account or the resource group where you are trying to create the function app.
    2. Check if you have reached the limit of server farms that you can create in your subscription. If you have reached the limit, you need to delete an existing server farm or request an increase in the limit.
    3. Try creating the function app in a different region. Sometimes, the issue can be specific to a region, and creating the function app in a different region can resolve the issue.

    If none of these steps work, you can try contacting Azure support for further assistance.


    I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.

    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.