Unable to create Azure VM

I am facing issues while creating VM in Azure. I am facing an issue like below. I know i used the correct specs but still facing the same issue.

{
“status”: “Failed”,
“error”: {
“code”: “RequestDisallowedByPolicy”,
“message”: “Resource ‘vm3_OsDisk_1_ace918f8fb25424292db1dc325e84ed0’ was disallowed by policy. Policy identifiers: '[{“policyAssignment”:{“name”:“Azure KodeKloud Sandbox”,“id”:”/subscriptions/8fea4313-4937-4746-ba29-a7f8758e55ba/resourceGroups/ResourceGroup1lod20258649/providers/Microsoft.Authorization/policyAssignments/policyAssignment1565"},“policyDefinition”:{“name”:“Azure KodeKloud Sandbox”,“id”:“/subscriptions/8fea4313-4937-4746-ba29-a7f8758e55ba/providers/Microsoft.Authorization/policyDefinitions/policy1565”}}]’. Target: ‘/subscriptions/8fea4313-4937-4746-ba29-a7f8758e55ba/resourceGroups/ResourceGroup1lod20258649/providers/Microsoft.Compute/disks/vm3_OsDisk_1_ace918f8fb25424292db1dc325e84ed0’."
}
}

Similar issue while creating the VM:

“Resource ‘vm1_OsDisk_1_14928577b426491eb63d1bfe55ef0737’ was disallowed by policy. Policy identifiers: ‘[{"policyAssignment":{"name":"Azure KodeKloud Sandbox","id":"/subscriptions/8fea4313-4937-4746-ba29-a7f8758e55ba/resourceGroups/ResourceGroup1lod22238049/providers/Microsoft.Authorization/policyAssignments/policyAssignment1565"},"policyDefinition":{"name":"Azure KodeKloud Sandbox","id":"/subscriptions/8fea4313-4937-4746-ba29-a7f8758e55ba/providers/Microsoft.Authorization/policyDefinitions/policy1565"}}]’. Target: ‘/subscriptions/8fea4313-4937-4746-ba29-a7f8758e55ba/resourceGroups/ResourceGroup1lod22238049/providers/Microsoft.Compute/disks/vm1_OsDisk_1_14928577b426491eb63d1bfe55ef0737’.”

Hello, @sharatbhaskar1988
Can you please add more details about your specification like volume type, os type etc…?

Hi @Tej_Singh_Rana,

First of all thanks for the reply, please note that i have used the below specs:

  1. Used Existing Resource group.
  2. Location: EastUs
  3. VM Size: Standard_D2s_v3
  4. Disk: Premium SSD
  5. OS: 2016 Datacenter

ERROR:

{“code”:“DeploymentFailed”,“message”:“At least one resource deployment operation failed. Please list deployment operations for details. Please see Deployment history - Azure Resource Manager | Microsoft Learn for usage details.”,“details”:[{“code”:“RequestDisallowedByPolicy”,“message”:“Resource ‘vm1_OsDisk_1_af04978f9a8f47f2a9c48406213b2b53’ was disallowed by policy. Policy identifiers: '… (Code: RequestDisallowedByPolicy)”,“policyDetails”:[]}]}

Hi @sharatbhaskar1988 ,

Thank you for your patience.
Please note that we are going to release a major upgrade to the cloud sandboxes (within this month) with support for more services across both AWS and Azure.

We will send a notification as soon as the new version is released.