Unable to deploy function app - ServerFarmCreationNotAllowed

andy b 20 Reputation points
2025-07-11T08:21:16.3866667+00:00

Function App fails to deploy with ServerFarmCreationNotAllowed

{"code":"InvalidTemplateDeployment","details":[{"code":"ValidationForResourceFailed","message":"Validation failed for a resource. Check 'Error.Details[0]' for more information.","details":[{"code":"ServerFarmCreationNotAllowed","message":"The subscription XXXXXXXXXXXXXXXXX' is not allowed to create or update the serverfarm."}]}],"message":"The template deployment 'Microsoft.Web-FunctionApp-Portal-15b997cf-bc49' is not valid according to the validation procedure

I own the directory and have full admin rights.

Others who have experienced the same issue appear to have a fix provided by Microsoft Admin on the backend.

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.


Answer accepted by question author
Krishna Chowdary Paricharla 2,915 Reputation points Microsoft External Staff Moderator
2025-07-15T07:22:37.7166667+00:00

Hello andy b •,

Thanks for your patience on this. Issue : The subscription --ID-- is not allowed to create or update the serverfarm."

Work Around/Mitigation Applied:

  • Upon investigating further, our internal team has applied a fix on the above shared customer subscription.
  • Also, from the backend logs, we can see that customer is able to create the function app without any issues.

Hope this helps, let me know if you have any further questions on this.

Please accept as Yes if the answer is helpful so that it can help others in the community.

User's image

Was 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.