why $filter didn't work in consumption usage details Rest API

Sanyukta Agrawal 0 Reputation points

hi everyone, why consumption rest api parameter $filter didn't work . When I use this parameter expression $filter = reservationId eq 'xxxx' , but return result didn't contain reservationId ='xxxx' . here is my get request url

https://management.azure.com/subscriptions/xyz/providers/Microsoft.Consumption/usageDetails?$filter=reservationId eq 'xxx'&metric=amortizedcost&api-version=2023-03-01

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