Azure / BillingCodeSamples

52 stars 24 forks source link

How to get the previous List price by using Ratecard API #20

Open jackting73 opened 6 years ago

jackting73 commented 6 years ago

Hi,

Since the list price keep updating, how to get the historical list price by using the RateCard API since I didn't found the parameter can be used?

ex: the latest list price of Basic_A0 VM in westus is 500/mon in July, and the list price last year in July was 400/month. When I use the usage API to get the last year's consumed quantity, but I only have the latest list price which is equals to 500/mon, without the actual list price which was 400/mon.

And parameter can be used to get the previous list price or workaround ? Thanks.

renutz commented 6 years ago

+1. Same problem.

jackting73 commented 6 years ago

Got the answer from another thread: will be supported on the next version later this year. https://github.com/Azure-Samples/billing-python-ratecard-api/issues/3