We are currently spiking to gather data from Azure in a different way than calling the consumption management API. Currently, using this method, we do not believe it is possible to retrieve data more granular than daily unless you parse the timestamp after receiving the data and sort by hours, minutes, etc.
I believe azure actualizes billing data daily as well but I can do more research to dig deeper on this. Here is more detail on the specific API and documentation about the response:
https://docs.microsoft.com/en-us/rest/api/consumption/Here is the sample object of data we capture from Azure for our calculations:
{
date: new Date('2020-11-02'),
quantity: 17,
cost: 5,
meterDetails: {
meterName: 'D2 v2/DS2 v2',
unitOfMeasure: '10 Hours',
meterCategory: 'Virtual Machines',
},
subscriptionId: 'test-subscription-id',
subscriptionName: 'test-subscription',
resourceLocation: 'uksouth',
},