Share via

web app create getting error ServerFarmCreationNotAllowed

ömür bozdemir 0 Reputation points
2025-12-10T07:08:49.79+00:00

i wanna create web app for django app bu alway getting this error

{

"code": "InvalidTemplateDeployment",

"message": "The template deployment 'Microsoft.Web-WebApp-Portal-58eeff90-83dc' is not valid according to the validation procedure. The tracking id is 'XXXc8XXX-XXXX-XXXX-XXX-XXXXXXXXXXXX'. See inner errors for details.",

"details": [

{

  "code": "ValidationForResourceFailed",

  "message": "Validation failed for a resource. Check 'Error.Details[0]' for more information.",

  "details": [

    {

      "code": "ServerFarmCreationNotAllowed",

      "message": "The subscription 'XXXcXXXX-XXXX-XXX6-XXXX-XXXXXXXXXXXX' is not allowed to create or update the serverfarm."

    }

  ]

}
```  ]

}

Edited PII information 
Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.


1 answer

Sort by: Most helpful
  1. Golla Venkata Pavani 5,480 Reputation points Microsoft External Staff Moderator
    2025-12-22T17:16:10.7366667+00:00

    Hii @ömür bozdemir,

    Thank you for reaching us regarding the issue of creating a web app for your Django application and encountering the "ServerFarmCreationNotAllowed" error. This typically means that your subscription doesn't have the permissions to create or update the required server farm.
    For this, please perform the following steps:
    1.Required Resource Providers Not Registered

    App Service creation requires these providers:

    • Microsoft.Web
    • Microsoft.DomainRegistration

    If they are not registered, App Service Plan creation fails. You can register them

    az provider register --namespace Microsoft.Web
    az provider register --namespace Microsoft.DomainRegistration
    

    Check if there are any Azure Policies or Management Group settings that could block you from creating App Service Plans.

    Review resources in Azure Policy in the portal and evaluate any policies that could impact resource provisioning.

    1. Certain Azure subscription types do not support creating new App Service Plans, even when the user has the Owner role. According to Microsoft documentation, this limitation is commonly seen in Free Trial, Azure for Students and newly activated subscriptions that are still undergoing billing verification. These subscription categories have built‑in restrictions that prevent deploying App Service Plans until the subscription is fully validated or upgraded.

    3.Region‑specific or quota‑based restrictions can prevent the creation of new App Service Plans if the selected Azure region has exhausted capacity or enforces a quota limit.

    Kindly let us know if the above helps or you need further assistance on this issue.

    Was this answer helpful?

    0 comments No comments

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.