Not able to create VM in Azure as well as in AWS

I am not able to create VM in both Azure as well as in AWS. I was trying to create VM with 2 CPUs and 8GB RAM in azure and using free tier eligible CPU and memory. Please check below error message that i received and advise ASAP.

{“code”:“DeploymentFailed”,“target”:“/subscriptions/b2aec48f-6dad-4d57-ad25-dad521fe74a4/resourceGroups/ODL-azure-1160668/providers/Microsoft.Resources/deployments/CreateVm-canonical.0001-com-ubuntu-server-focal-2-20231130200235”,“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”:“ResourceDeploymentFailure”,“target”:“/subscriptions/b2aec48f-6dad-4d57-ad25-dad521fe74a4/resourceGroups/ODL-azure-1160668/providers/Microsoft.Compute/virtualMachines/Test1”,“message”:“The resource write operation failed to complete successfully, because it reached terminal provisioning state ‘Failed’.”}]}

I don’t cover Azure, but in AWS playground, ensure the following to not get errors

  • Region: us-east-1 (N.Virginia)
  • Instance Type: t2 or t3, nano, micro, small or medium
  • Disk: gp2 up to 30GB

Hi Alistair_KodeKloud,

It is working. Thank you for your help. Do you know who handle azure? Could you please inform that person to provide active region info?

Thank you.

It is possible that it’s going to be a similar reason to AWS i.e. you’re not creating a VM that fits within the rules.

So I just went and worked it out.
The default disk setting for a new VM is “Premium SSD”. This is not allowed by policy. You must select “Standard SSD” in the Disks settings for it to deploy