How to get list of virtual machine sizes which supports spot instace ?

Prajyot Halingale 0 Reputation points
2023-05-02T04:22:51.5533333+00:00

Hi all,

I am trying to get a list of virtual machine sizes which supports Azure spot instances in a given location.

I have tried below API :

GET https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/._../vmSizes?api-version=2023-03-01

result of the above API was :

 {
      "name": "Standard_B1ls",
      "numberOfCores": 1,
      "osDiskSizeInMB": 1047552,
      "resourceDiskSizeInMB": 4096,
      "memoryInMB": 512,
      "maxDataDiskCount": 2
    }

I cannot see a tag for the spot instance in the above response. Can you please help me with this?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
5,241 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. lukemurraynz 4,726 Reputation points MVP
    2023-05-02T20:57:12.44+00:00

    Hi, Prajyot

    Check out Azure Price - https://azureprice.net/?tier=spot

    You can adjust the VM sizes to include spot compatible VMs.

    0 comments No comments