Microsoft Billing usage details API

2022-12-27T16:37:33.88+00:00

Hi ,

Greetings!

I am trying to use the azure billing api (https://learn.microsoft.com/en-us/rest/api/consumption/usage-details/list?tabs=HTTP)

Filtering the data as Storage (Meter Category) and HSD,SSD(SubMeterCategory) and i am able to find the 'Quantity' column i am assuming it as Consumed GB() when MeterCategory filter is Type is Storage. And assuming it as Hours if the Meter Category filter is Virtual Machines.Please suggest if any document or detailed link for more details on elaborate more details like key columns like Quantity.

If any approach to find consumed hours on specific storage type like hsd/ssd using billing api please suggest.

Thanks,
satya

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
3,585 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SadiqhAhmed-MSFT 49,326 Reputation points Microsoft Employee Moderator
    2022-12-28T23:40:39.943+00:00

    Hello @Venkata satyanarayana Machari veera (CIS) - Thank you for reaching out to us on Microsoft Q& platform. Happy to help!

    I see that you are using azure billing API to fetch data (Storage and Virtual Machine) to understand the data/Storage being consumed and the number of hours Virtual Machine (Compute) resources were running. In general, we recommend that you use the Cost Details API instead of the Usage Details API: https://learn.microsoft.com/en-us/rest/api/cost-management/generate-cost-details-report

    Regarding the Quantity column, what you described in your post is correct. You can find some more details here: https://learn.microsoft.com/en-us/azure/cost-management-billing/automate/understand-usage-details-fields

    Hope this helps. Plese reply if you Have more questions!

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

    If the response helped, do "Accept Answer" and up-vote it

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.