Reputation: 46
I am in need to get current resource consumption details of specific VM and the costing of that VM according to consumption using REST api.
[Want Azure API to which I can pass the VM name/id and result would be Usage details and cost. They do have usage and Rate card API End Points but again it needs taking one Val from Usage and one relative from Rate multiplying it to get total]
Upvotes: 0
Views: 402
Reputation: 727
Is that what you are looking for?
The Azure billing API allows to get data of your usage and the money that you have to pay for your resources.
https://codehollow.com/2017/02/using-the-azure-billing-api-to-calculate-the-costs/
Azure Billing REST API Reference: https://msdn.microsoft.com/en-us/library/azure/mt218998.aspx
Upvotes: 2