Azure REST API select date range or billing period for the UsageDetails in the Consumption API

Ed Quillen 21 Reputation points
2020-12-09T20:20:47.207+00:00

It appears you CAN"T select a date range for the UsageDetails list call in the api. Is that true?
I need to get the detailed per resource usage charges from last months invoice. I can get the current month by making this API call. It refers to using a billingPeriodName for the scope but I am not able to find this information via the API or the portal even. I suspect it is because we are an MCA customer (vs PayAsYouGo or EA). Any ideas? Thanks
Ed

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

Accepted answer
  1. SadiqhAhmed-MSFT 40,441 Reputation points Microsoft Employee
    2020-12-10T06:51:31.037+00:00

    @Ed Quillen Welcome to Microsoft Q&A community forum!

    Information on calling UsageDetails with a date range can be found here: Manage Azure costs with automation | Microsoft Learn

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

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


0 additional answers

Sort by: Most helpful