0

I am following this quickstart tutorial from Microsoft on creating a web app and deploying it to azure app service. When I try to create the app service, I am getting this error:

System.Net.Http.HttpRequestException: {"error":{"code":"InvalidTemplateDeployment","message":"The template deployment failed with multiple errors. Please see details for more information.","details":[{"code":"RequestDisallowedByPolicy","target":"AzureCDN-POC","message":"Resource 'AzureCDN-POC' was disallowed by policy. Policy identifiers: '[{\"policyAssignment\":{\"name\":\"CE Prevent - Web - TagsCompliance\",\"id\":\"/subscriptions/[subscription id]/providers/Microsoft.Authorization/policyAssignments/CE Prevent - Web - TagsCompliance\"}

What causes this error and how can I resolve it?

user8080
  • 25
  • 4
  • 1
    If my reply is helpful, please accept it as answer(click on the mark option beside the reply to toggle it from greyed out to fill in.), see https://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work – Jason Pan Apr 15 '21 at 01:06

1 Answers1

0

Resource 'AzureCDN-POC' was disallowed by policy

Your Subscription Administrator has set a policy that disallows the creation of such resources.

You need to contact your Subscription Administrator, change the policy will solve your issue.

For more details, please read official doc.

What is Azure Policy?

Related Post:

1. Resource was disallowed by policy

2. Azure course that tries to use Azure Cloud Shell fails with “RequestDisallowedByPolicy” using free account

Jason Pan
  • 15,263
  • 1
  • 14
  • 29