Getting error while creating VMs in Azure

{
“code”: “DeploymentFailed”,
“target”: “/subscriptions/02a1c77c-0965-4976-b13b-8c339752bbc9/resourceGroups/ODL-azure-1249851/providers/Microsoft.Resources/deployments/CreateVm-canonical.0001-com-ubuntu-server-focal-2-20240303195730”,
“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/02a1c77c-0965-4976-b13b-8c339752bbc9/resourceGroups/ODL-azure-1249851/providers/Microsoft.Compute/virtualMachines/vm1”,
“message”: “The resource write operation failed to complete successfully, because it reached terminal provisioning state ‘Failed’.”
}
]
}

What are the details of the VM you are trying to deploy? Please refer to the playground guide for supported VM attributes:
Azure Sandbox Playground | KodeKloud