Hi I was try to follow on this page instruction to get Reservation Recommendation data. By default, the value for field "properties/resourceType" is VirtualMachines.
I would like to get the resourceType equal to VirtualMachines or Cosmos DB so I try this call these apis:
- Use OR operation
https://management.azure.com/{resourceScope}/providers/Microsoft.Consumption/reservationRecommendations?$filter=properties/scope eq 'Single' AND (properties/resourceType eq 'CosmosDB' OR properties/resourceType eq 'VirtualMachines')&api-version=2023-05-01
But I get this error: Filtering on multiple resource types is not supported
- Use IN operation
https://management.azure.com/{resourceScope}/providers/Microsoft.Consumption/reservationRecommendations?$filter=properties/scope eq 'Single' AND properties/resourceType in ('CosmosDB, VirtualMachines')&api-version=2023-05-01
But I get this error: Processing query expression failed. Error: Nodes of type: 'In' not supported
- Use search.in function
https://management.azure.com/{resourceScope}/providers/Microsoft.Consumption/reservationRecommendations?$filter=properties/scope eq 'Single' AND search.in(properties/resourceType, 'CosmosDB, VirtualMachines')&api-version=2023-05-01
But I get this error: Processing query expression failed. Error: An unknown function with name 'search.in' was found. This may also be a function import or a key lookup on a navigation property, which is not allowed
Can I ask how could get multiple resource Type at the same time? Thanks a lot