Unable to deploy azure function app - is not allowed to create or update the serverfarm

Jeroen Pot 120 Reputation points
2025-05-04T01:14:57.94+00:00

The function app deployment errors out with the error below. I found this relevant threat, but was unable to find a solution.

https://learn.microsoft.com/en-us/answers/questions/1657059/the-subscription-is-not-allowed-to-create-or-updat

{
    "status": "Failed",
    "error": {
        "code": "Forbidden",
        "message": "The subscription '21f8772b-xxxx-xxxx-xxxx-88d90bb301d1' is not allowed to create or update the serverfarm.",
        "details": [
            {
                "message": "The subscription '21f8772b-xxxx-xxxx-xxxx-88d90bb301d1' 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

Accepted answer
  1. Khadeer Ali 5,990 Reputation points Microsoft External Staff Moderator
    2025-05-05T17:20:12.5866667+00:00

    @Jeroen Pot ,

    Thank you for your patience.

    Issue: Unable to deploy azure function app - The subscription '21f8772b-xxxx-xxxx-xxxx-88d90bb301d1' is not allowed to create or update the serverfarm

    Workaround/Mitigation Applied:

    After further investigation, our internal team applied a fix to the customer's subscription.

    I hope this resolves the matter. Please let me know if you have any further questions.

    If this solution was helpful, kindly confirm as "Yes" so it can assist others in the community.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.