Share via

deployment verification failed

John Ebere 1 Reputation point
2021-08-31T17:14:41.213+00:00

{"code":"InvalidTemplateDeployment","details":[{"code":"RequestDisallowedByPolicy","target":"ASP-learn0ba7bc0f438d4c04bfe4fa5988-a26e","message":"Resource 'ASP-learn0ba7bc0f438d4c04bfe4fa5988-a26e' was disallowed by policy. (Code: RequestDisallowedByPolicy)","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":"S1","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"}}],"policyDetails":[{"isInitiative":true,"assignmentId":"/providers/Microsoft.Management/managementGroups/192fe359-e72a-fa7e-dcd5-95e985e7eac9/providers/Microsoft.Authorization/policyAssignments/webapps-assignment","assignmentName":"webapps-assignment","auxDefinitions":[{"definitionName":"app-service-sku-policy","nonComplianceMessage":null}],"viewDetailsUri":"https://portal.azure.com#blade/Microsoft_Azure_Policy/EditAssignmentBladeV2/assignmentId/%2Fproviders%2FMicrosoft.Management%2FmanagementGroups%2F192fe359-e72a-fa7e-dcd5-95e985e7eac9%2Fproviders%2FMicrosoft.Authorization%2FpolicyAssignments%2Fwebapps-assignment"}]}],"message":"The template deployment failed because of policy violation. Please see details for more information."}

Community Center | Not monitored

2 answers

Sort by: Most helpful
  1. AllenLiu-MSFT 49,441 Reputation points Microsoft External Staff
    2021-09-01T02:19:25.703+00:00

    Hi, @John Ebere
    Thank you for posting in Microsoft Q&A forum.

    Maybe you are the first time to use Q&A forum, in this forum, we use tag to define the problem category. The tag "mem-cm-site-deployment" is for SCCM related issue.
    Based on my research, the log you provided looks like a Azure related problem, you may ask your question with a detailed description and attach the tag "azure-policy", then you may get a better support from Azure support engineer.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

  2. Jason Sandys 31,421 Reputation points Microsoft Employee Moderator
    2021-08-31T18:22:47.947+00:00

    Same as your other post at https://learn.microsoft.com/en-us/answers/questions/534833/deployment-valodation-failed.html.

    For anyone to be able to help, you need to provide context instead of just copying and pasting a bunch of out-of-context text.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.