Skip to main content Explore View all products (200+) Microsoft Foundry Azure Copilot GitHub Copilot Azure Kubernetes Service (AKS) Azure Cosmos DB Azure Database for PostgreSQL Azure Arc Microsoft Fabric Linux virtual machines in Azure Foundry Models Foundry Agent Service Foundry IQ Foundry Tools Foundry Control Plane Observability in Foundry Control Plane Azure OpenAI in Foundry Models Azure Speech in Foundry Tools Azure Machine Learning View all databases Azure Cosmos DB Azure DocumentDB Azure SQL Azure Database for PostgreSQL Azure Managed Redis Microsoft Fabric Azure Databricks Linux virtual machines in Azure Windows Server on Azure Azure Functions Azure Virtual Machine Scale Sets Azure API Management Azure Container Apps Azure Kubernetes Service (AKS) Azure Kubernetes Fleet Manager Azure Container Registry Azure Red Hat OpenShift Azure Container Instances Azure Container Storage Azure Arc Azure Local Microsoft Defender for Cloud Azure Monitor Microsoft Sentinel Azure Migrate View all solutions (40+) Cloud solutions for small and medium businesses Cloud migration and modernization center Data analytics for AI Azure Databases AI apps and agents Microsoft Marketplace Microsoft Sovereign Cloud AI apps and agents Responsible AI with Azure AI Infrastructure Data analytics for AI Machine learning operations (MLOps) Low-code application development on Azure Integration Services Serverless computing DevOps Migration and modernization center .NET apps migration Databases on Azure Linux on Azure Oracle on Azure SAP on the Microsoft Cloud Adaptive cloud High-performance computing (HPC) Infrastructure as a service (IaaS) Resiliency Azure Essentials Frontier Accelerate for Azure FinOps on Azure Microsoft Marketplace Azure pricing overview Create an Azure account Free Azure services Flexible purchase options Pricing calculator FinOps on Azure Maximize ROI from AI Azure savings plans Azure reservations Azure Hybrid Benefit Virtual Machines Azure SQL Microsoft Foundry Microsoft Fabric Azure Kubernetes Service (AKS) Microsoft Defender for Cloud View more Software Development Companies Microsoft Marketplace Find a partner Resources for Azure partners Get started with Azure Customer stories Analyst reports, white papers, and e-books Videos Learn more about cloud computing Documentation Explore Azure portal Developer resources Quickstart templates Resources for startups Developer community Students Azure for partners Blog Events and Webinars Learn Support Contact Sales Get started with Azure Sign in

If you have Virtual Machines (VM) running in azure, you can take advantage of discounted pricing on Reserved Instances (RI) and pre-pay for your Virtual Machines. Microsoft consumption recommendation apis looks at your usage for seven, 30, or 60 days and recommends optimum configurations of Reserved Instances. It calculates the cost you would pay if you did not have RI and cost you will pay with RI optimizing your savings. The following example shows calculations that happen for 7 day recommendation but the same method is applied for calculating 30 or 60 day recommendations.

Calculation method

Let us assume your hourly windows VM usage for a specific SKU and region looks like the following graph (min. is 65 units and max. is 127 units) for seven days. 

image

If you purchase 75 Reserved Instances, for hour 79, you will pay the following:

  • 75 Instances of Reserved Instances. This will be pre-paid when you purchase RI.
  • Reserved Instance covers the hardware cost of running VMs, so you will pay 75 hours of software only price as described in the document for Windows software costs not included with Reserved Instances.
  • Since usage for this hour is 80, you will pay for five hours of (windows + HW) combination  meter price. This will be your negotiated price if you are an EA customer or it will be pay as you go price.

If you add up the costs described in three points above for all the hours, you can calculate the total cost if you purchase 75 RI. You can also calculate your current cost using your negotiated prices in case you are EA customer or use pay as you go prices if you do not have custom negotiated prices. Difference in these two amounts will give you savings for seven days in case you purchase 75 RIs.

Microsoft Consumption Recommendation api does these calculations for each specific usage point and returns the Recommended Quantity where your saving is maximum. In this example, below graph shows that your savings peak at 68 and then start reducing so the api will return 68.

image

Other expected behavior on recommendations

  • If your current usage for Windows VM is not using hybrid use benefits, api will NOT assume that you will use hub and recommendation will factor in the per core cost of windows IP. You can use hub and further increase savings. Future versions of the api will give recommendations on hub savings also.
  • If you are using a look back period of seven days and your VM ran for the first two days, then was down and again ran for the fourth day. You may or may not see in the recommendations depending on RI discount.

API details

You can get the details on calling the recommendation api for your Enterprise enrollment.

Next steps

Purchase Reserved Instance

Use hybrid use rights to save on cost of windows software.

WE ARE MICROSOFT

Explore Microsoft Foundry

The future of AI starts here. Envision your next great AI app with the latest technologies. Get started with Azure.