Azure reservations recommendations

Vikas Neekhra 6 Reputation points

I am trying to understand the response of this recommendations api.

what are these properties for?
costWithNoReservedInstances and totalCostWithReservedInstances

are these hourly/monthly cost of Reserved Instance? or what?

if I check the cost of this "meterId": "7fe518bd-edbc-5c4a-a364-0bc7d5139819" in pricing api then that is something different. How can I get potential monthly savings, savings rate and upfront/monthly cost of a recommendations?

            "kind": "legacy",  
            "id": "/providers/Microsoft.Billing/billingAccounts/000000-1111-2222-3333-4444444444:aaaaaa-bbbb-cccc-dddd-fffffffffff_2018-09-30/billingProfiles/a1a1a1a1-b1b1-c1c1-d1d1-0904f86dc607/providers/Microsoft.Consumption/reservationRecommendations/a2a2a2a2a2a-a3a3-a4a4-a5a5-a6a6a6a6a6a",  
            "name": "a2a2a2a2a2a-a3a3-a4a4-a5a5-a6a6a6a6a6a",  
            "type": "Microsoft.Consumption/reservationRecommendations",  
            "location": "westeurope",  
            "sku": "Standard_D2ds_v4",  
            "properties": {  
                "meterId": "7fe518bd-edbc-5c4a-a364-0bc7d5139819",  
                "term": "P3Y",  
                "costWithNoReservedInstances": 6.287733968000001,  
                "recommendedQuantity": 1,  
                "totalCostWithReservedInstances": 2.3072564687974566,  
                "netSavings": 3.9804774992025447,  
                "firstUsageDate": "2022-10-29T18:00:00Z",  
                "scope": "Shared",  
                "lookBackPeriod": "Last30Days",  
                "resourceType": "virtualmachines",  
                "instanceFlexibilityRatio": 1.0,  
                "instanceFlexibilityGroup": "Ddsv4 Series",  
                "normalizedSize": "Standard_D2ds_v4",  
                "recommendedQuantityNormalized": 1.0,  
                "skuProperties": null  
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
5,234 questions
Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
1,174 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Stanislav Zhelyazkov 15,676 Reputation points MVP

    This API is basically it is the same one described here. Where all properties are described as well. Basically costWithNoReservedInstances and totalCostWithReservedInstances values are in units and the type of unit is in the meter you find for meter ID with 7fe518bd-edbc-5c4a-a364-0bc7d5139819" in this case. For VM compute this is I think always one hour. So basically, these are the hours the VM. Let's say one hour costs 0.21$ you will multiple 6.287733968000001 x 0.21 and 2.3072564687974566 x 0.21. That way you will get the cost for the compute that you will pay without RI and with RI instance. If you look at lookBackPeriod property you will see that this was the usage that was generated for the last 30 days, netSavings is how much units would you have saved and it is the difference between costWithNoReservedInstances and totalCostWithReservedInstances. term is what reserved instance period you can buy and if you multiple that quantity by 36 months (as the data is for last 30 days - one month) you will get how much you will pay for compute without RI and with RI.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.