The template deployment failed with error when creating azure spot vm machine

Imran Tufail 1 Reputation point
2022-07-20T15:04:54.073+00:00

I'm new to azure & trying to deploying a Spot Virtual Machine with windows server 2019 gen2. When I try to create virtual machine I got this error

"The template deployment failed with error: 'The resource with id: '/subscriptions/6b3845e9-2c4e-44c6-baaf-5efb515334c2/resourceGroups/cloud-vcenter/providers/Microsoft.Compute/virtualMachines/EXsi' failed validation with message: 'The requested size for resource '/subscriptions/6b3845e9-2c4e-44c6-baaf-5efb515334c2/resourceGroups/cloud-vcenter/providers/Microsoft.Compute/virtualMachines/EXsi' is currently not available in location 'eastus' zones '' for subscription '6b3845e9-2c4e-44c6-baaf-5efb515334c2'. Please try another size or deploy to a different location or zones. See https://aka.ms/azureskunotavailable for details.'.'. (Code: InvalidTemplateDeployment)"

How can I solve this error? My account belong to "Azure for Students" subscription.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,013 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Alistair Ross 7,466 Reputation points Microsoft Employee
    2022-07-20T23:17:07.53+00:00

    Your issue could be related to the fact that not all regions support all sizes of spot instances. You can check the VM pricing to find out which sizes are in your selected region.

    kind regards

    Alistair

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.