Confused about VM reservations

Joe H 96 Reputation points
2021-04-30T13:03:21.303+00:00

I don't quite understand how VM reservations work. Here's a scenario:

I have a resource group where I will create 2 VMs that are D4s_v3. Can I scope a 3 year reservation for D4s_v3 to only apply to those 2 VMs in that specific resource group? I don't want a 3 year reservation to apply to any D4s_v3 VMs that reside outside of that resource group.

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

Accepted answer
  1. Andreas Baumgarten 92,396 Reputation points MVP
    2021-04-30T15:31:49.777+00:00

    Hi @Joe H ,

    reservations can be scoped to a single resource group:
    https://learn.microsoft.com/en-us/azure/cost-management-billing/reservations/prepare-buy-reservation#reservation-scoping-options

    But you can't scope the reservation to specific VMs in the resource group. Which means if you have 3 VMs with the same SKU series in the scoped resource group you can't assign a reservation to a specific VM.

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Joe H 96 Reputation points
    2021-04-30T16:38:30.907+00:00

    I'm fine with all VMs of a specific SKU in a resource group having to use the reservation. I just didn't want to have to have every D4s_v3 VM in the entire subscription have to use the reservation.

    Thanks for the help.

    0 comments No comments