the template deployment failed because of policy violation

D Omo 21 Reputation points
2021-09-10T11:55:47.11+00:00

When using the Azure learning on learn.microsoft.com, I create a sandbox as per the course instructions and try to create a logic app. I keep getting the error above. I am using the concierge subscription. Full details of the error are below. Any help would be appreciated as I can't seem to get beyond this point no matter what. It seems it should be a simple thing:

{
"code": "InvalidTemplateDeployment",
"message": "The template deployment failed because of policy violation. Please see details for more information.",
"details": [
{
"code": "RequestDisallowedByPolicy",
"target": "ASP-learneabf76acdb154470b375d4625b-8061",
"message": "Resource 'ASP-learneabf76acdb154470b375d4625b-8061' was disallowed by policy. Policy identifiers: '[{\"policyAssignment\":{\"name\":\"webapps-assignment\",\"id\":\"/providers/Microsoft.Management/managementGroups/192fe359-e72a-fa7e-dcd5-95e985e7eac9/providers/Microsoft.Authorization/policyAssignments/webapps-assignment\"},\"policyDefinition\":{\"name\":\"app-service-sku-policy\",\"id\":\"/providers/Microsoft.Management/managementGroups/learn-sandbox-prod/providers/Microsoft.Authorization/policyDefinitions/app-service-sku-policy\"},\"policySetDefinition\":{\"name\":\"webapps-initiative\",\"id\":\"/providers/Microsoft.Management/managementGroups/learn-sandbox-prod/providers/Microsoft.Authorization/policySetDefinitions/webapps-initiative\"}}]'.",
"additionalInfo": [
{
"type": "PolicyViolation",
"info": {
"policyDefinitionDisplayName": "app-service-sku-policy",
"policySetDefinitionDisplayName": "webapps-initiative",
"evaluationDetails": {
"evaluatedExpressions": [
{
"result": "True",
"expressionKind": "Field",
"expression": "type",
"path": "type",
"expressionValue": "Microsoft.Web/serverfarms",
"targetValue": "Microsoft.Web/serverFarms",
"operator": "Equals"
},
{
"result": "True",
"expressionKind": "Field",
"expression": "Microsoft.Web/serverfarms/sku.name",
"path": "sku.name",
"expressionValue": "WS1",
"targetValue": [
"F1",
"D1",
"Y1"
],
"operator": "NotIn"
}
]
},
"policyDefinitionId": "/providers/Microsoft.Management/managementGroups/learn-sandbox-prod/providers/Microsoft.Authorization/policyDefinitions/app-service-sku-policy",
"policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/learn-sandbox-prod/providers/Microsoft.Authorization/policySetDefinitions/webapps-initiative",
"policyDefinitionReferenceId": "app-service-sku-policy_1",
"policySetDefinitionName": "webapps-initiative",
"policyDefinitionName": "app-service-sku-policy",
"policyDefinitionEffect": "Deny",
"policyAssignmentId": "/providers/Microsoft.Management/managementGroups/192fe359-e72a-fa7e-dcd5-95e985e7eac9/providers/Microsoft.Authorization/policyAssignments/webapps-assignment",
"policyAssignmentName": "webapps-assignment",
"policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/192fe359-e72a-fa7e-dcd5-95e985e7eac9"
}
}
]
}
]
}

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,753 questions
{count} votes

1 additional answer

Sort by: Most helpful
  1. Peppers 6 Reputation points
    2022-06-23T10:15:21.29+00:00
    1 person found this answer helpful.
    0 comments No comments