question

Ohad-6217 avatar image
0 Votes"
Ohad-6217 asked ·

Spot vm variable price

  1. How often the spot vm price changes , daily / hourly / something else ?

  2. Is there an api call to get the current spot price of vm size in a particular region?





azure-virtual-machines
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LeonLaude avatar image
0 Votes"
LeonLaude answered ·

Hi,















1. How often the spot vm price changes , daily / hourly / something else ?















You can refer to the pricing here:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/spot-vms#pricing















Pricing















Pricing for Spot VMs is variable, based on region and SKU. For more information, see VM pricing for Linux and Windows.















With variable pricing, you have option to set a max price, in US dollars (USD), using up to 5 decimal places. For example, the value 0.98765would be a max price of $0.98765 USD per hour. If you set the max price to be -1, the VM won't be evicted based on price. The price for the VM will be the current price for spot or the price for a standard VM, which ever is less, as long as there is capacity and quota available.















2. Is there an api call to get the current spot price of vm size in a particular region?















Maybe this one?















Use Azure Billing APIs to programmatically get insight into your Azure usage

https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/usage-rate-card-overview























For billing questions you can also contact the Microsoft Azure sales by phone or chat:







https://azure.microsoft.com/en-us/overview/sales-number/





































· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.