Azure Spot VM

Kunmi 1 Reputation point Microsoft Vendor
2020-06-11T19:00:15.927+00:00

I tried creating a spot instance with 72 cores in Europe West and UK West but get an error.

{
"code": "InvalidTemplateDeployment",
"message": "The template deployment failed with error: 'The resource with id: '/subscriptions/d368e6f8-7041-43a4-a1a3-51e09c632abb/resourceGroups/res01/providers/Microsoft.Compute/virtualMachines/vm01' failed validation with message: 'The requested size for resource '/subscriptions/d368e6f8-7041-43a4-a1a3-51e09c632abb/resourceGroups/res01/providers/Microsoft.Compute/virtualMachines/vm01' is currently not available in location 'ukwest' zones '' for subscription 'd368e6f8-7041-43a4-a1a3-51e09c632abb'. Please try another size or deploy to a different location or zones. See https://aka.ms/azureskunotavailable for details.'.'."
}

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,542 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
363 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Chris Williams 6 Reputation points
    2020-06-24T16:45:19.307+00:00

    I had opened a case for this same issue, and was directed to this doc, which I hadn't seen: https://learn.microsoft.com/en-us/azure/virtual-machines/windows/spot-vms#limitations[spot-vms][1].

    In my case, my account was an MSDN benefits account. When I selected a Pay As You Go account, I could create Spot instances.

    1 person found this answer helpful.
    0 comments No comments

  2. Manu Philip 17,351 Reputation points MVP
    2020-06-11T19:30:05.913+00:00

    Hello @Kunmi-7064 ,

     Get-AzureRMVMSize -Location 'locationname'
    
     
    

    Above cmlet returns all the possible SKUs available for the location disregarding limitations of your subscription. So, try and see the option suitable for your account and create the spot instance available at the location you selected.

    If you need the details of the location name, you can check it using the following cmdlet

     Get-AzureRmLocation |Format-Table
    

    Please mark as "Accept the answer" if the above steps helps you. Others with similar issues can also follow the solution as per your suggestion

    Regards,

    Manu

    0 comments No comments