Programatically getting reserved instance cost/rate?

So am currently doing some cost analysis for some of our VMs on-prem versus running in Azure or AWS. I so far from an Azure perspective got hold of the rate card for the various instance types and worked out which storage and instances I need and the cost. However, this only gives me on-demand pricing which is not really what we would do.

Is there an API that gives the discount rates per instance based on 1/3yr pricing? I have found the “reserved instance catalog” but the most it returns is:

resourceType : virtualMachines

name : Standard_NV12

terms : {P1Y, P3Y}

locations : {uksouth}

restrictions : {}

Anyone manged to get this information out of Azure in a method that does not revole around manually inputting stuff in to their calculators?

submitted by /u/serokles
[link] [comments]

Leave a Reply