How to interpret spotEvictionRate  in Azure Resource graph for spotresources?

Arunan Sugunakumar 20 Reputation points
2023-03-28T03:03:56.02+00:00

I ran the below query in Azure Resource Graphs to get the Spot eviction rates of different VMs in different regions.

SpotResources 
| where type =~ 'microsoft.compute/skuspotevictionrate/location' 
| where sku.name in~ ('standard_d2s_v4', 'standard_d4s_v4') 
| where location in~ ('eastus', 'southcentralus') 
| project skuName = tostring(sku.name), location, spotEvictionRate = tostring(properties.evictionRate) 
| order by skuName asc, location asc

I got values like 5-10, 10-15 for spotEvictionRate column.

I want to know what is meant by spotEvictionRate and how it is calculated. Does it mean that there is a 10% chance that a particular VM will get terminated in next hour?

It would be much helpful if someone can share any related documents/articles to read up on this.

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

Accepted answer
  1. vipullag-MSFT 26,211 Reputation points
    2023-03-28T04:47:08.5333333+00:00

    Hello Arunan Sugunakumar

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    The spotEvictionRate in Azure Resource Graph for SpotResources is the percentage of time that a Spot VM is evicted in a given hour. It is calculated based on the historical eviction rate of the VM SKU in the specified region. For example, if the spotEvictionRate is 10%, it means that there is a 10% chance that a particular VM will get terminated in the next hour.

    Hope that helps.

    If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.


0 additional answers

Sort by: Most helpful

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.