{“code”:“InvalidTemplateDeployment”,“details”:[{“code”:“RequestDisallowedByPolicy”,“target”:“egtopic1”,“message”:“Resource ‘egtopic1’ was disallowed by policy. (Code: RequestDisallowedByPolicy)”,“additionalInfo”:[{“type”:“PolicyViolation”,“info”:{“policyDefinitionDisplayName”:“Azure KodeKloud Sandbox”,“evaluationDetails”:{“evaluatedExpressions”:[{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.EventGrid/topics”,“targetValue”:“Microsoft.Compute/virtualMachines”,“operator”:“Equals”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.EventGrid/topics”,“targetValue”:“Microsoft.Compute/virtualMachineScaleSets”,“operator”:“Equals”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.EventGrid/topics”,“targetValue”:“Microsoft.Network”,“operator”:“Contains”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.EventGrid/topics”,“targetValue”:“Microsoft.Insights/autoscalesettings”,“operator”:“Contains”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.EventGrid/topics”,“targetValue”:“Microsoft.Compute/sshPublicKeys”,“operator”:“Contains”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.EventGrid/topics”,“targetValue”:“Microsoft.Compute/virtualMachines/extensions”,“operator”:“Contains”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.EventGrid/topics”,“targetValue”:“Microsoft.Compute/disks”,“operator”:“Equals”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.EventGrid/topics”,“targetValue”:“Microsoft.logic”,“operator”:“Contains”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.EventGrid/topics”,“targetValue”:“Microsoft.web”,“operator”:“Contains”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.EventGrid/topics”,“targetValue”:“[Microsoft.Storage/storageAccounts”,“operator”:“Contains”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.EventGrid/topics”,“targetValue”:“Microsoft.Web/serverFarms”,“operator”:“Contains”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.EventGrid/topics”,“targetValue”:“Microsoft.Web/sites”,“operator”:“Contains”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.EventGrid/topics”,“targetValue”:“Microsoft.DocumentDB”,“operator”:“Contains”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.EventGrid/topics”,“targetValue”:“Microsoft.Sql”,“operator”:“Contains”}]},“policyDefinitionId”:“/subscriptions/8fea4313-4937-4746-ba29-a7f8758e55ba/providers/Microsoft.Authorization/policyDefinitions/policy1565”,“policyDefinitionName”:“policy1565”,“policyDefinitionEffect”:“deny”,“policyAssignmentId”:“/subscriptions/8fea4313-4937-4746-ba29-a7f8758e55ba/resourceGroups/ResourceGroup1lod21674040/providers/Microsoft.Authorization/policyAssignments/policyAssignment1565”,“policyAssignmentName”:“policyAssignment1565”,“policyAssignmentDisplayName”:“Azure](http://microsoft.storage/storageAccounts",“operator”:“Contains”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.EventGrid/topics”,“targetValue”:“Microsoft.Web/serverFarms”,“operator”:“Contains”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.EventGrid/topics”,“targetValue”:“Microsoft.Web/sites”,“operator”:“Contains”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.EventGrid/topics”,“targetValue”:“Microsoft.DocumentDB”,“operator”:“Contains”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.EventGrid/topics”,“targetValue”:“Microsoft.Sql”,“operator”:“Contains”}]%7D,%22policyDefinitionId%22:%22/subscriptions/8fea4313-4937-4746-ba29-a7f8758e55ba/providers/Microsoft.Authorization/policyDefinitions/policy1565%22,%22policyDefinitionName%22:%22policy1565%22,%22policyDefinitionEffect%22:%22deny%22,%22policyAssignmentId%22:%22/subscriptions/8fea4313-4937-4746-ba29-a7f8758e55ba/resourceGroups/ResourceGroup1lod21674040/providers/Microsoft.Authorization/policyAssignments/policyAssignment1565%22,%22policyAssignmentName%22:%22policyAssignment1565%22,%22policyAssignmentDisplayName%22:%22Azure) KodeKloud Sandbox”,“policyAssignmentScope”:“/subscriptions/8fea4313-4937-4746-ba29-a7f8758e55ba/resourceGroups/ResourceGroup1lod21674040”}}],“policyDetails”:[{“isInitiative”:false,“assignmentId”:“/subscriptions/8fea4313-4937-4746-ba29-a7f8758e55ba/resourceGroups/ResourceGroup1lod21674040/providers/Microsoft.Authorization/policyAssignments/policyAssignment1565”,“assignmentName”:“Azure KodeKloud Sandbox”,“nonComplianceMessage”:null,“viewDetailsUri”:“https://portal.azure.com#blade/Microsoft_Azure_Policy/EditAssignmentBladeV2/assignmentId/%2Fsubscriptions%2F8fea4313-4937-4746-ba29-a7f8758e55ba%2FresourceGroups%2FResourceGroup1lod21674040%2Fproviders%2FMicrosoft.Authorization%2FpolicyAssignments%2FpolicyAssignment1565”}]}],“message”:“The template deployment failed because of policy violation. Please see details for more information.”}
Hey @magicsun ,
We are migrating the cloud playgrounds to version 2 in which we are trying to address these known issues. The new version will add support for more services as well and is expected to be released this week.
Apologies for the inconvenience
Thanks,
KodeKloud support