skip to Main Content

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


  1. 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
    Login or Signup to reply.
  2. 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
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search