Get pricing information for spot vm using enterprise apis

Ravindra Naik 41 Reputation points
2022-04-04T19:37:28.277+00:00

Hi,

I was wondering if there are any api's which are available for enterprises to get the spot vm's pricing information. I did have this link, https://learn.microsoft.com/en-us/rest/api/cost-management/retail-prices/azure-retail-prices, which is helpful but if there is any api for enterprises that would help.

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

1 answer

Sort by: Most helpful
  1. Ryan Johnson 6 Reputation points Microsoft Employee
    2022-07-20T17:30:28.677+00:00

    From this page I found the Azure retail price API now includes spot pricing - if you hit this Compute Pricing API query (change the USD currency as applicable), for example, you can observe I found some spot unit pricing, in one of many regions I may be interested in.
    222803-image.png

    1 person found this answer helpful.
    0 comments No comments