Hi
When I call the forecast API at subscription level (https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/forecast?api-version=2019-10-01) with this simple request body
{
"type": "Usage",
"timeframe": "MonthToDate",
"dataset": {
"granularity": "Daily"
},
"includeActualCost": false,
"includeFreshPartialCost": false
}
the call gets the error:
Invalid query definition: Invalid dataset grouping: 'BillingPeriod'; valid values: 'ResourceGroup','ResourceGroupName'....
When I simply change the url to API of type query https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/query?api-version=2019-10-01 I get a response
Any ideas?