You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cost-management-billing/reservations/reserved-instance-purchase-recommendations.md
+12-25Lines changed: 12 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,35 +13,22 @@ ms.author: banders
13
13
---
14
14
15
15
# How reservation recommendations are created
16
+
Azure reserved instance (RI) purchase recommendations are provided through Azure Consumption [Reservation Recommendation API](/rest/api/consumption/reservationrecommendations), [Azure Advisor](../..//advisor/advisor-cost-recommendations.md#buy-reserved-virtual-machine-instances-to-save-money-over-pay-as-you-go-costs), and through the reservation purchase experience in the Azure portal.
16
17
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
+
The following steps define how recommendations are calculated:
19
+
1. The recommendation engine evaluates the hourly usage for your resources in the given scope over the past seven, 30, and 60 days.
20
+
2. Based on the usage data, the engine simulates your costs with and without reservations.
21
+
3. The costs are simulated for different quantities, and the quantity that maximizes the savings is recommended.
22
+
4. If your resources are shut down regularly, the simulation won't find any savings, and no purchase recommendation is provided.
18
23
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.
Reservation purchase recommendations for virtual machines are available in Azure Advisor. Keep in mind the following points:
26
+
- Advisor has only single-subscription scope recommendations.
27
+
- Recommendations that are calculated with a 30 day look-back period are available in Advisor.
28
+
- If you purchase a shared-scope reservation, Advisor reservation purchase recommendations can take up to 30 days to disappear.
40
29
41
30
## 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.
31
+
- 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
32
46
33
## Next steps
47
34
- Learn about [how the Azure reservation discount is applied to virtual machines](../manage/understand-vm-reservation-charges.md).
0 commit comments