{"id":6904,"date":"2023-05-29T23:04:03","date_gmt":"2023-05-29T23:04:03","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=6904"},"modified":"2023-05-29T23:04:06","modified_gmt":"2023-05-29T23:04:06","slug":"being-charged-for-compute-in-azure-with-a-vm-paid-for-with-reserved-instances","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/being-charged-for-compute-in-azure-with-a-vm-paid-for-with-reserved-instances","title":{"rendered":"Being Charged for Compute in Azure with a VM paid for with Reserved Instances"},"content":{"rendered":"\n<p>A customer recently came to us with an Azure bill discrepancy of being charged for Azure compute for VM&#8217;s when the VM&#8217;s had Prepaid Reserved Instances ( RI&#8217;s )<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2023\/05\/image-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"795\" height=\"65\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2023\/05\/image-2.png\" alt=\"\" class=\"wp-image-6908 img-responsive\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2023\/05\/image-2.png 795w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2023\/05\/image-2-300x25.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2023\/05\/image-2-768x63.png 768w\" sizes=\"auto, (max-width: 795px) 100vw, 795px\" \/><\/a><\/figure>\n\n\n\n<p>By default when you purchase and assign a RI to the customer, it applies to the matching resources in eligible subscriptions within your billing context. So every <strong>hour <\/strong>it matches a VM with the right instance model to a RI for that instance. The customer had VMs that did not have any RI ( PAYG ) so if a RI VM were switched off, Azure would start discounting the PAYG machine, hence the billing discrepancy, however, the math all checks out in the end as the PAYG would be less that month.<\/p>\n\n\n\n<p>You can target a RI to only a specific Resource Group, but the customer would be worse off as the PAYG machine would miss out on that discount when the RI machine is powered off.<\/p>\n\n\n\n<p>We can prove this to the customer via the RI dashboard in Azure<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2023\/05\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"521\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2023\/05\/image-1024x521.png\" alt=\"\" class=\"wp-image-6906 img-responsive\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2023\/05\/image-1024x521.png 1024w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2023\/05\/image-300x153.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2023\/05\/image-768x391.png 768w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2023\/05\/image.png 1135w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2023\/05\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"452\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2023\/05\/image-1-1024x452.png\" alt=\"\" class=\"wp-image-6907 img-responsive\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2023\/05\/image-1-1024x452.png 1024w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2023\/05\/image-1-300x132.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2023\/05\/image-1-768x339.png 768w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2023\/05\/image-1-1536x677.png 1536w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2023\/05\/image-1.png 1873w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>We also learnt about <strong>Instance size flexibility <\/strong>when you can apply an RI for a Large VM to multiple smaller VMs &#8211; <a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/virtual-machines\/reserved-vm-instance-size-flexibility\" target=\"_blank\" rel=\"noreferrer noopener\">Virtual machine size flexibility -Azure Reserved VM Instances &#8211; Azure Virtual Machines | Microsoft Learn<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A customer recently came to us with an Azure bill discrepancy of being charged for Azure compute for VM&#8217;s when the VM&#8217;s had Prepaid Reserved Instances ( [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[4222,4220],"class_list":["post-6904","post","type-post","status-publish","format-standard","hentry","category-research","tag-compute","tag-reserved-instances"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=6904"}],"version-history":[{"count":2,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6904\/revisions"}],"predecessor-version":[{"id":6909,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6904\/revisions\/6909"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=6904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=6904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=6904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}