I am trying to get the cost of each and every resource in my azure subscription everyday.
I was thinking to use this link Azure REST API – Where do I find resource costs? but i don’t have the resource group names for the subscriptions with me.
I am trying to get the cost of each and every resource in my azure subscription everyday.
I was thinking to use this link Azure REST API – Where do I find resource costs? but i don’t have the resource group names for the subscriptions with me.
2
Answers
At the subscription level, Azure provides and ability to track your spending over your whole infrastructure with "Cost Management + Biling". You can preview your cost analysis and see your burning partner overtime. There’s also a new functionality in preview so you can see cost by resource for example.
The above picture is how the cost analysis look like and how you can imagine it.
If you would like to know more: https://learn.microsoft.com/en-us/azure/cost-management-billing/cost-management-billing-overview
EDIT
The above is accessible in Azure portal directly. But I’ve personally never did it via REST API, but so far I was able to find this and I believe it might help you.
I actually wrote a blog post about this: