{“code”:“InvalidTemplateDeployment”,“details”:[{“code”:“RequestDisallowedByPolicy”,“target”:“hgfrt34534”,“message”:“Resource ‘hgfrt34534’ was disallowed by policy. Reasons: ‘This container service configuration is not allowed. Please ensure the VM size is Standard_D4s_v3, the agent pool name is agentpool, and the max and current count do not exceed 2.’. See error details for policy resource IDs.”,“additionalInfo”:[{“type”:“PolicyViolation”,“info”:{“evaluationDetails”:{“evaluatedExpressions”:[{“result”:“True”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.ContainerService/managedClusters”,“targetValue”:“Microsoft.ContainerService/managedClusters”,“operator”:“Equals”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“Microsoft.ContainerService/managedClusters/agentPoolProfiles[].name",“path”:"properties.agentPoolProfiles[].name”,“expressionValue”:[“agentpool”,“userpool”],“targetValue”:“agentpool”,“operator”:“Equals”}],“reason”:“This container service configuration is not allowed. Please ensure the VM size is Standard_D4s_v3, the agent pool name is agentpool, and the max and current count do not exceed 2.”},“policyDefinitionId”:“/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/providers/Microsoft.Authorization/policyDefinitions/container_service_main-2113606b8c5846e8”,“policySetDefinitionId”:“/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/providers/Microsoft.Authorization/policySetDefinitions/Azure_playground_main-2113606b8c5846e8”,“policyDefinitionReferenceId”:“container_service_main-2113606b8c5846e8_ref”,“policySetDefinitionName”:“Azure_playground_main-2113606b8c5846e8”,“policySetDefinitionDisplayName”:“Azure_playground_main-2113606b8c5846e8”,“policyDefinitionName”:“container_service_main-2113606b8c5846e8”,“policyDefinitionDisplayName”:“container_service_main-2113606b8c5846e8”,“policyDefinitionEffect”:“deny”,“policyAssignmentId”:“/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/resourceGroups/kml_rg_main-2113606b8c5846e8/providers/Microsoft.Authorization/policyAssignments/Azure_playground_main-2113606b8c5846e8”,“policyAssignmentName”:“Azure_playground_main-2113606b8c5846e8”,“policyAssignmentDisplayName”:“Azure_playground_main-2113606b8c5846e8”,“policyAssignmentScope”:“/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/resourceGroups/kml_rg_main-2113606b8c5846e8”,“policyAssignmentParameters”:{},“policyExemptionIds”:[]}}]}],“message”:“The template deployment failed because of policy violation. Please see details for more information.”}
Hi @Engage-AWM
Could you please try referring to our guide on creating an AKS cluster.
I just tried it and it is working as expected.
Regards.
Thanks for sharing the guide. Now i’m able to create it.


