question

JoeH-0944 avatar image
0 Votes"
JoeH-0944 asked JoeH-0944 answered

Confused about VM reservations

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
5 |1600 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.

AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered

Hi @JoeH-0944 ,

reservations can be scoped to a single resource group:
https://docs.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

5 |1600 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.

JoeH-0944 avatar image
0 Votes"
JoeH-0944 answered

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.

5 |1600 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.