I have the following URL which is used to get the UsageDetails from Microsoft. consumption
az rest --method GET --url 'https://management.azure.com/subscriptions/{subscription}/providers/Microsoft.Consumption/UsageDetails?api-version=2019-10-01'
Now, I want the details for the time periods between 2022-11-01 and 2022-11-30. But so far I have been only able to retrieve current billing cycle details.
Please let me know if I have to use a different API version or how to add the date/timeframe filter to the API call to retrieve the previous month's data other than the current billing cycle.
Also, I am open to suggestions if there is a different command call altogether to get these cost/ usage of resources/subscriptions other than az rest with Microsoft.Consumption