Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.69k stars 5.12k forks source link

Bug - TheLastMonth timeframe in cost-management/query API does not work #27650

Open vegazbabz opened 9 months ago

vegazbabz commented 9 months ago

The required request body "timeframe" with the value = TheLastMonth is not working. This is a bug in all API versions it seems, including your samples: https://learn.microsoft.com/en-us/rest/api/cost-management/query/usage?view=rest-cost-management-2023-11-01&tabs=HTTP

The rest of the TimeframeTypes work.

"error": {
    "code": "BadRequest",
    "message": "Invalid query definition, timeframe TheLastMonth is currently not supported. (Request ID: 754b2af6-c953-4258-8838-ced9ebcba4b3)"
}
manjinder-mckc commented 2 months ago

+1