cannot create azure app function

Iheb Jendoubi 60 Reputation points
2025-06-12T19:38:43.2366667+00:00

Even that i can create azure app services , when i try to create azure app function i get this error :

{
  "deploymentStatusCode": -1,
  "stage": 6,
  "expected": true,
  "error": {
    "code": "InvalidTemplateDeployment",
    "details": [
      {
        "code": "ValidationForResourceFailed",
        "message": "Validation failed for a resource. Check 'Error.Details[0]' for more information.",
        "details": [
          {
            "code": "ServerFarmCreationNotAllowed",
            "message": "The subscription 'xxxxxxxxxx' is not allowed to create or update the serverfarm."
          }
        ]
      }
    ],
    "message": "The template deployment 'Microsoft.Web-FunctionApp-Portal-fc22cc25-99ea' is not valid according to the validation procedure. The tracking id is 'c2f17733-9821-422f-b759-732146ec6b4e'. See inner errors for details."
  },
  "subscriptionId": "xxxxxx,
  "resourceGroupName": "xxxxxxx",
  "location": "Canada Central",
  "deploymentName": "Microsoft.Web-FunctionApp-Portal-fc22cc25-99ea",
  "details": {
    "code": "InvalidTemplateDeployment",
    "message": "The template deployment 'Microsoft.Web-FunctionApp-Portal-fc22cc25-99ea' is not valid according to the validation procedure. The tracking id is 'c2f17733-9821-422f-b759-732146ec6b4e'. 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 'xxxxxxx' is not allowed to create or update the serverfarm."
          }
        ]
      }
    ]
  },
  "notificationTimestamp": "2025-06-12T19:37:11.602Z"
}
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
{count} votes

Accepted answer
  1. Loknathsatyasaivarma Mahali 2,740 Reputation points Microsoft External Staff Moderator
    2025-06-17T04:19:04.28+00:00

    Hello Iheb Jendoubi,

    Thanks for your patience on this. Issue: cannot create azure app function failing with error "The subscription 'XXXXX' is not allowed to create or update the server farm."

    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.

    0 comments No comments

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.