user1312155
user1312155

Reputation: 173

Get cost of each resource everyday in my azure subscription

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.

Upvotes: 0

Views: 2977

Answers (2)

Francesco Mantovani
Francesco Mantovani

Reputation: 12237

I actually wrote a blog post about this:

  1. You can use the Azure Cost Management connector in Power BI Desktop
  2. You can exported daily data in CSV format

Upvotes: 0

catJam
catJam

Reputation: 230

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.

enter image description here

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.

  1. https://learn.microsoft.com/en-us/rest/api/cost-management/
  2. https://learn.microsoft.com/en-us/rest/api/consumption/
  3. https://learn.microsoft.com/en-us/rest/api/consumption/usage-details

Upvotes: 1

Related Questions