Cannot create azure functions in Playground

Please find the error below.

{
“deploymentStatusCode”: -1,
“stage”: 6,
“expected”: true,
“error”: {
“code”: “InvalidTemplateDeployment”,
“details”: [
{
“code”: “RequestDisallowedByPolicy”,
“target”: “ASP-kmlrgmain846b8d6949c645b0-8612”,
“message”: “Resource ‘ASP-kmlrgmain846b8d6949c645b0-8612’ was disallowed by policy. Reasons: ‘This App Service Plan SKU is not allowed. Please use a Free or Basic SKU with names B1 or F1.’. See error details for policy resource IDs.”,
“additionalInfo”: [
{
“type”: “PolicyViolation”,
“info”: {
“evaluationDetails”: {
“evaluatedExpressions”: [
{
“result”: “True”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.Web/serverfarms”,
“operator”: “Equals”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “Microsoft.Web/serverfarms/sku.tier”,
“path”: “sku.tier”,
“expressionValue”: “Dynamic”,
“targetValue”: [
“Free”,
“Basic”,
“B1”,
“F1”
],
“operator”: “In”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “Microsoft.Web/serverfarms/sku.tier”,
“path”: “sku.tier”,
“expressionValue”: “Dynamic”,
“targetValue”: “false”,
“operator”: “Exists”
}
],
“reason”: “This App Service Plan SKU is not allowed. Please use a Free or Basic SKU with names B1 or F1.”
},
“policyDefinitionId”: “/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/providers/Microsoft.Authorization/policyDefinitions/app_service-kml”,
“policySetDefinitionId”: “/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/providers/Microsoft.Authorization/policySetDefinitions/global-limits_a2b28c85-1948-4263-90ca-bade2bac4df4-kml”,
“policyDefinitionReferenceId”: “app_service-kml_ref”,
“policySetDefinitionName”: “global-limits_a2b28c85-1948-4263-90ca-bade2bac4df4-kml”,
“policySetDefinitionDisplayName”: “global-limits_a2b28c85-1948-4263-90ca-bade2bac4df4-kml”,
“policySetDefinitionVersion”: “1.0.0”,
“policyDefinitionName”: “app_service-kml”,
“policyDefinitionDisplayName”: “app_service-kml”,
“policyDefinitionVersion”: “1.0.0”,
“policyDefinitionEffect”: “deny”,
“policyAssignmentId”: “/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/providers/Microsoft.Authorization/policyAssignments/global-limits_a2b28c85-1948-4263-90ca-bade2bac4df4-kml”,
“policyAssignmentName”: “global-limits_a2b28c85-1948-4263-90ca-bade2bac4df4-kml”,
“policyAssignmentDisplayName”: “global-limits_a2b28c85-1948-4263-90ca-bade2bac4df4-kml”,
“policyAssignmentScope”: “/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4”,
“policyAssignmentParameters”: {},
“policyExemptionIds”: [],
“policyEnrollmentIds”: []
}
}
]
}
],
“message”: “The template deployment failed because of policy violation. Please see details for more information.”
},
“subscriptionId”: “a2b28c85-1948-4263-90ca-bade2bac4df4”,
“resourceGroupName”: “kml_rg_main-846b8d6949c645b0”,
“location”: “East US”,
“deploymentName”: “Microsoft.Web-FunctionApp-Portal-bac98fc0-b909”,
“details”: {
“code”: “InvalidTemplateDeployment”,
“message”: “The template deployment failed because of policy violation. Please see details for more information.”,
“details”: [
{
“code”: “RequestDisallowedByPolicy”,
“target”: “ASP-kmlrgmain846b8d6949c645b0-8612”,
“message”: “Resource ‘ASP-kmlrgmain846b8d6949c645b0-8612’ was disallowed by policy. Reasons: ‘This App Service Plan SKU is not allowed. Please use a Free or Basic SKU with names B1 or F1.’. See error details for policy resource IDs.”,
“additionalInfo”: [
{
“type”: “PolicyViolation”,
“info”: {
“evaluationDetails”: {
“evaluatedExpressions”: [
{
“result”: “True”,
“expressionKind”: “Field”,
“expression”: “type”,
“path”: “type”,
“expressionValue”: “Microsoft.Web/serverfarms”,
“targetValue”: “Microsoft.Web/serverfarms”,
“operator”: “Equals”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “Microsoft.Web/serverfarms/sku.tier”,
“path”: “sku.tier”,
“expressionValue”: “Dynamic”,
“targetValue”: [
“Free”,
“Basic”,
“B1”,
“F1”
],
“operator”: “In”
},
{
“result”: “False”,
“expressionKind”: “Field”,
“expression”: “Microsoft.Web/serverfarms/sku.tier”,
“path”: “sku.tier”,
“expressionValue”: “Dynamic”,
“targetValue”: “false”,
“operator”: “Exists”
}
],
“reason”: “This App Service Plan SKU is not allowed. Please use a Free or Basic SKU with names B1 or F1.”
},
“policyDefinitionId”: “/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/providers/Microsoft.Authorization/policyDefinitions/app_service-kml”,
“policySetDefinitionId”: “/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/providers/Microsoft.Authorization/policySetDefinitions/global-limits_a2b28c85-1948-4263-90ca-bade2bac4df4-kml”,
“policyDefinitionReferenceId”: “app_service-kml_ref”,
“policySetDefinitionName”: “global-limits_a2b28c85-1948-4263-90ca-bade2bac4df4-kml”,
“policySetDefinitionDisplayName”: “global-limits_a2b28c85-1948-4263-90ca-bade2bac4df4-kml”,
“policySetDefinitionVersion”: “1.0.0”,
“policyDefinitionName”: “app_service-kml”,
“policyDefinitionDisplayName”: “app_service-kml”,
“policyDefinitionVersion”: “1.0.0”,
“policyDefinitionEffect”: “deny”,
“policyAssignmentId”: “/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/providers/Microsoft.Authorization/policyAssignments/global-limits_a2b28c85-1948-4263-90ca-bade2bac4df4-kml”,
“policyAssignmentName”: “global-limits_a2b28c85-1948-4263-90ca-bade2bac4df4-kml”,
“policyAssignmentDisplayName”: “global-limits_a2b28c85-1948-4263-90ca-bade2bac4df4-kml”,
“policyAssignmentScope”: “/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4”,
“policyAssignmentParameters”: {},
“policyExemptionIds”: [],
“policyEnrollmentIds”: []
}
}
]
}
]
},
“notificationTimestamp”: “2025-10-27T07:49:53.851Z”
}

Hi @PiyushB

The message explains it all:
Resource ‘ASP-kmlrgmain846b8d6949c645b0-8612’ was disallowed by policy.
Reason: This App Service Plan SKU is not allowed. Please use a Free or Basic SKU (B1 or F1).

You can find more details about the Azure Playground limitations here:
https://kodekloud.com/cloud-playgrounds/azure#Services