Does Azure Spot usage consume Azure Reserved VM Instance allocations?

Mark Whitney 81 Reputation points

My understanding is that Azure VM RIs are only applied to "standard" Azure VM usage and not Azure Spot. Is that correct?

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

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 42,601 Reputation points Microsoft Employee

    @Mark Whitney Does Azure Spot usage consume Azure Reserved VM Instance allocations? No
    What do you mean when you say "Standard" Azure VM?

    Refer here for detailed information in Azure Sport VM

    Additional information: Best practices:
    Here are some effective ways to best utilize Azure Spot Virtual Machines:

    • For long-running operations, try to create checkpoints so that you can restart your workload from a previous known checkpoint to handle evictions and save time.
    • In scale-out scenarios, to save costs, you can have two VMSS, where one has regular Virtual Machines and the other has Spot Virtual Machines. You can put both in the same load balancer to opportunistically scale out.
    • Listen to eviction notifications in the Virtual Machine to get notified when your Virtual Machine is about to be evicted.
    • If you are willing to utilize pay-as-you-go prices, then use Eviction type to “Capacity Eviction only”, in the API provide “-1” as max price as Azure never charges you more than the Spot Virtual Machine price.
    • To handle evictions, build a retry logic to redeploy Virtual Machines. If you do not require a specific Virtual Machine series and size, then try to deploy a different size that matches your workload needs.
    • While deploying VMSS, select max spread in portal management tab or FD==1 in the API to find capacity in a zone

    For more information Azure Spot VM, please refer to the Faq:

    Learn more about Use Spot VMs in Azure and Virtual Machines with Azure Reserved VM Instances

    Check here for difference pricing, workload and more

    When you buy a Reserved VM Instance, you can choose to optimize for instance size flexibility or capacity priority. For more information about setting or changing the optimize setting for reserved VM instances, see Change the optimize setting for reserved VM instances.
    An Azure RI ‘VM group’ is simply a list of VMs to which instance size flexibility can be applied. A VM group is not aligned with the existing Azure VM series. Please refer to the documentation for a list of RI VM groups and additional details.

    Hope this helps!Kindly let us know if the above helps or you need further assistance on this issue.


    Please don’t forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.