{“code”:“InvalidTemplateDeployment”,“details”:[{“code”:“RequestDisallowedByPolicy”,“target”:“RecommendedAlertRules-AG-1”,“message”:“Resource ‘RecommendedAlertRules-AG-1’ was disallowed by policy. (Code: RequestDisallowedByPolicy)”,“additionalInfo”:[{“type”:“PolicyViolation”,“info”:{“evaluationDetails”:{“evaluatedExpressions”:[{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.Compute/virtualMachines”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.Compute/sshPublicKeys”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.Compute/virtualMachines/extensions”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.Compute/virtualMachineScaleSets”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.Network/applicationGateways”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.Compute/disks”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.Storage”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.Network/networkInterfaces”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.Network/networkSecurityGroups”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.Network/publicIPAddresses”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.Network/virtualNetworks”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.DocumentDB/databaseAccounts”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.Web/serverFarms”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.Web/sites”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.Sql/servers”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.ManagedIdentity/userAssignedIdentities”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.Network/loadBalancers”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.Network/routeTables”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.ContainerService/managedClusters”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.Sql/servers/databases”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.DataLakeAnalytics/accounts”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.Synapse/workspaces”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.Logic/workflows”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.ContainerService/managedClusters/agentPools”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.Sql/servers”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.OperationalInsights/workspaces”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.SecurityInsights/workspaces”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.ContainerRegistry/registries”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:“Microsoft.ContainerRegistry/registries/replications”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“microsoft.insights/actionGroups”,“targetValue”:[“Microsoft.Compute/virtualMachines”,“Microsoft.Compute/virtualMachineScaleSets”,“Microsoft.Compute/disks”,“Microsoft.Storage”,“Microsoft.Network/networkInterfaces”,“Microsoft.Network/networkSecurityGroups”,“Microsoft.Network/publicIPAddresses”,“Microsoft.Network/virtualNetworks”,“Microsoft.DocumentDB/databaseAccounts”,“Microsoft.Web/serverFarms”,“Microsoft.Web/sites”,“Microsoft.Sql/servers”,“Microsoft.ManagedIdentity/userAssignedIdentities”,“Microsoft.ContainerService/managedClusters”,“Microsoft.KeyVault/vaults”,“Microsoft.MachineLearningServices/workspaces”,“Microsoft.Compute/sshPublicKeys”,“Microsoft.Storage/storageAccounts”,“Microsoft.OperationalInsights/workspaces”,“Microsoft.Network/applicationGateways”,“Microsoft.SecurityInsights/workspaces”,“Microsoft.Compute/virtualMachines/extensions”,“Microsoft.ContainerRegistry/registries”,“Microsoft.ContainerRegistry/registries/replications”],“operator”:“In”}]},“policyDefinitionId”:“/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/providers/Microsoft.Authorization/policyDefinitions/core_policy_main-57fe7a74f3104a13”,“policySetDefinitionId”:“/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/providers/Microsoft.Authorization/policySetDefinitions/Azure_playground_main-57fe7a74f3104a13”,“policyDefinitionReferenceId”:“11550972781009880622”,“policySetDefinitionName”:“Azure_playground_main-57fe7a74f3104a13”,“policySetDefinitionDisplayName”:“Azure_playground_main-57fe7a74f3104a13”,“policyDefinitionName”:“core_policy_main-57fe7a74f3104a13”,“policyDefinitionDisplayName”:“core_policy_main-57fe7a74f3104a13”,“policyDefinitionEffect”:“deny”,“policyAssignmentId”:“/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/resourceGroups/kml_rg_main-57fe7a74f3104a13/providers/Microsoft.Authorization/policyAssignments/Azure_playground_main-57fe7a74f3104a13”,“policyAssignmentName”:“Azure_playground_main-57fe7a74f3104a13”,“policyAssignmentDisplayName”:“Azure_playground_main-57fe7a74f3104a13”,“policyAssignmentScope”:“/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/resourceGroups/kml_rg_main-57fe7a74f3104a13”,“policyAssignmentParameters”:{},“policyExemptionIds”:[]}}],“policyDetails”:[{“isInitiative”:true,“assignmentId”:“/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/resourceGroups/kml_rg_main-57fe7a74f3104a13/providers/Microsoft.Authorization/policyAssignments/Azure_playground_main-57fe7a74f3104a13”,“assignmentName”:“Azure_playground_main-57fe7a74f3104a13”,“auxDefinitions”:[{“definitionName”:“core_policy_main-57fe7a74f3104a13”,“nonComplianceMessage”:null}],“viewDetailsUri”:“Microsoft Azure template deployment failed with multiple errors. Please see details for more information.”}
Playgrounds are quite restricted in terms of what resources can be created (cost reasons).
Please follow exactly the guide here.