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"
}