Hi Vijin, / Kodekloud team
Trying to install Azure VM failing with same error reported in this thread
{“code”:“InvalidTemplateDeployment”,“message”:“The template deployment failed because of policy violation. Please see details for more information.”,“details”:[{“code”:“RequestDisallowedByPolicy”,“target”:“rsWS2019_DataDisk_0”,“message”:“Resource ‘rsWS2019_DataDisk_0’ was disallowed by policy. (Code: RequestDisallowedByPolicy)”,“additionalInfo”:[{“type”:“PolicyViolation”,“info”:{“policyDefinitionDisplayName”:“azureV28922-673609-PolicyDefinition”,“evaluationDetails”:{“evaluatedExpressions”:[{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.Compute/disks”,“targetValue”:“Microsoft.Compute/virtualMachines”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.Compute/disks”,“targetValue”:“Microsoft.Compute/sshPublicKeys”,“operator”:“Like”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.Compute/disks”,“targetValue”:“Microsoft.Compute/virtualMachineScaleSets”,“operator”:“Like”},{“result”:“True”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.Compute/disks”,“targetValue”:“Microsoft.Compute/disks”,“operator”:“Equals”},{“result”:“True”,“expressionKind”:“Field”,“expression”:“Microsoft.Compute/disks/sku.name”,“path”:“sku.name”,“expressionValue”:“Premium_LRS”,“targetValue”:“Premium*”,“operator”:“Like”}]},“policyDefinitionId”:“/subscriptions/b2aec48f-6dad-4d57-ad25-dad521fe74a4/providers/Microsoft.Authorization/policyDefinitions/azureV28922-673609-PolicyDefinition”,“policyDefinitionName”:“azureV28922-673609-PolicyDefinition”,“policyDefinitionEffect”:“deny”,“policyAssignmentId”:“/subscriptions/b2aec48f-6dad-4d57-ad25-dad521fe74a4/resourceGroups/ODL-azureV2-673609/providers/Microsoft.Authorization/policyAssignments/azureV28922-673609-PolicyDefinition-ODL-azureV2-673609”,“policyAssignmentName”:“azureV28922-673609-PolicyDefinition-ODL-azureV2-673609”,“policyAssignmentDisplayName”:“azureV28922-673609-PolicyDefinition-ODL-azureV2-673609”,“policyAssignmentScope”:“/subscriptions/b2aec48f-6dad-4d57-ad25-dad521fe74a4/resourceGroups/ODL-azureV2-673609”}}],“policyDetails”:[{“isInitiative”:false,“assignmentId”:“/subscriptions/b2aec48f-6dad-4d57-ad25-dad521fe74a4/resourceGroups/ODL-azureV2-673609/providers/Microsoft.Authorization/policyAssignments/azureV28922-673609-PolicyDefinition-ODL-azureV2-673609”,“assignmentName”:“azureV28922-673609-PolicyDefinition-ODL-azureV2-673609”,“nonComplianceMessage”:null,“viewDetailsUri”:“Microsoft Azure”}]}]}
could pls take a look and suggest ho to overcome this issue