Skip to content

Commit 31611bf

Browse files
committed
cost mgt billing - adding how res recommendations are created
1 parent 4648e74 commit 31611bf

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed
28 KB
Loading
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: How reservation recommendations are created
3+
description: Learn how reservation recommendations are created for virtual machines.
4+
author: banders
5+
ms.reviewer: yashar
6+
ms.service: cost-management-billing
7+
ms.devlang: na
8+
ms.topic: conceptual
9+
ms.tgt_pltfrm: na
10+
ms.workload: na
11+
ms.date: 01/28/2020
12+
ms.author: banders
13+
---
14+
15+
# How reservation recommendations are created
16+
17+
Azure reserved instance (RI) purchase recommendations are generated by the Azure Consumption [Reservation Recommendation API](/rest/api/consumption/reservationrecommendations). Recommendations from the API are also used by [Azure Advisor](../..//advisor/advisor-cost-recommendations.md#buy-reserved-virtual-machine-instances-to-save-money-over-pay-as-you-go-costs). Advisor shows recommendations in the Azure portal.
18+
19+
If you have VMs running in Azure, you can take advantage of discounted pricing for RIs and pre-pay for your VMs. Microsoft Consumption recommendation API evaluates your usage for 7, 30, and 60 days and recommends optimum configurations for RIs. It calculates the cost you'd pay if you didn't have RIs against the cost you'll pay with RIs to optimize savings.
20+
21+
Azure Advisor shows recommendations based on a 30-day period.
22+
23+
For simplicity, the following example shows calculations that happen for a seven-day recommendation. The same method is applied when calculating 30- or 60-day recommendations.
24+
25+
## Calculation method example
26+
27+
Assume that your hourly Windows VM usage for a specific SKU and region varies over seven days (168 hours). The minimum usage is 65 units and the maximum usage is 127 units over the seven days. In this example, hour 79 used 80 VMs and you purchased 75 RIs.
28+
29+
If you purchase 75 reserved instances, you pay the following costs for hour 79:
30+
31+
- 75 reserved instances. The cost is pre-paid when you purchase RIs.
32+
- Reserved instances cover the hardware cost of running VMs, so you'll pay for 75 hours at the software-only price.
33+
- Usage for hour 79 is 80, so you'll pay for five hours of the Windows plus the hardware combination meter price. The combination price is based on either your Enterprise Agreement (EA) or pay-as-you-go rate.
34+
35+
If you buy 75 RIs, you can calculate the total cost by adding the preceding hourly costs. You can also calculate your current cost using your rate. The difference between the two amounts is your savings for seven days in this example.
36+
37+
The API does calculations for each specific usage point. Then it returns the recommended quantity where savings are maximized. In the following example, the graph shows that savings peak at 68. Savings reduce afterward, so the API recommends 68.
38+
39+
![Diagram showing peak savings](./media/reserved-instance-purchase-recommendations/peak-savings.png)
40+
41+
## Other expected API behavior
42+
43+
- The API shows possible savings with [Azure Hybrid Benefit](https://azure.microsoft.com/pricing/hybrid-benefit/) for Windows when the benefit is used. If the benefit isn't used, then the API recommendations are based on the core Windows cost. If available to you, consider using Azure Hybrid Benefit to increase savings.
44+
- When using a look back period of seven days, you might not get recommendations when VMs are shut down for more than a day.
45+
46+
## Next steps
47+
- Learn about [how the Azure reservation discount is applied to virtual machines](../manage/understand-vm-reservation-charges.md).

articles/cost-management-billing/reservations/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
items:
4141
- name: Reserved VM instance discounts
4242
href: ../manage/understand-vm-reservation-charges.md
43+
- name: How reservation recommendations are created
44+
href: reserved-instance-purchase-recommendations.md
4345
- name: Azure Storage reserved capacity discounts
4446
href: understand-storage-charges.md
4547
- name: Cosmos DB reserved capacity discounts

0 commit comments

Comments
 (0)