The template deployment failed because of policy violation.

SVM 6 Reputation points
2021-02-04T16:58:37.947+00:00

When I attempt to run through Exercise1 - Create a WordPress website hosted in Auzure, I encounter "The template deployment failed because of policy violation." while creating the WordPress

Detailed: Information:

"galleryItemId": "WordPress.WordPress",
"createBlade": "CreateBlade",
"code": "InvalidTemplateDeployment",
"message": "The template deployment failed because of policy violation. Please see details for more information.",
"details": [
{
"code": "RequestDisallowedByPolicy",
"target": **************************
"message": "Resource 'ServicePlan******************' was disallowed by policy. Policy identifiers: '[{\"policyAssignment\":{\"name\":\"AppService-SKU\",\"id\":\"/providers/Microsoft.Management/managementGroups/triplecrown2/providers/Microsoft.Authorization/policyAssignments/*********************\"},\"policyDefinition\":{\"name\":\"AppService-SKU\",\"id\":\"/providers/Microsoft.Management/managementGroups/************************/providers/Microsoft.Authorization/policyDefinitions/****************************\"}}]'.",
`

Has anyone run into this issue and successfully resolved it? (*s have been replaced unique IDs.)

Thank you.

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
918 questions
{count} votes

6 answers

Sort by: Most helpful
  1. Joka 0 Reputation points
    2024-04-11T18:12:54.13+00:00

    I'm facing the same problem.

    Also I'm not able to connect my azuredevops to my azure subscription

    0 comments No comments

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.