fetching cost detail

Aayushi Solanki 41 Reputation points
2022-05-04T08:41:36.393+00:00

I want to fetch cost of all tags, resource group, & services al together by using azure cost management API.
Is it possible with API to get each tag cost, resource group & services cost. If possible what dataset should be used in request body.

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,085 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Monalla-MSFT 11,961 Reputation points
    2022-05-05T20:23:24.497+00:00

    Hello @Aayushi Solanki - Thanks for reaching out to us.

    In order for you to fetch cost of all tags, resource groups and services together using API, the best recommendation would be to start with using export details.

    And if that doesn't work, the alternative would be to use usage details.

    That gives you everything you need, you can group/filter on whatever you need from there.

    Hope this helps. and please feel free to reach out if you have any further questions.

    ------------------------------------------------------------------

    If the above response was helpful, please feel free to "Accept as Answer" and "Upvote" the same so it can be beneficial to the community.

    0 comments No comments