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

Frances 20 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.

0 comments No comments

Answer accepted by question author
Pinaki Ghatak 5,700 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.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.