Azure Retail Prices API Filters not working

2022-12-12T18:17:20.387+00:00

Hi Team,

I am trying get the data using Azure Retail Prices API with the below link

https://learn.microsoft.com/en-us/rest/api/cost-management/retail-prices/azure-retail-prices

Only currencyCode filterig when i am using any other filters as specied in the link not able to filter the data

as exampe : call
https://prices.azure.com/api/retail/prices?$filter=serviceName eq 'Virtual Machines' and priceType eq 'Reservation'
i tried with -eq aswell.

Please sugegst if any idea.

Thanks
satya

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
3,647 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. darsha-MSFT 101 Reputation points Microsoft Employee
    2022-12-13T14:28:19.55+00:00

    Can you please try the below and confirm if it's working:

    GET https://prices.azure.com/api/retail/prices?currencyCode='INR'&$filter=serviceName eq 'Virtual Machines' and priceType eq 'Reservation'

    0 comments No comments

  2. Venkata satyanarayana Machari veera (CIS) 151 Reputation points
    2022-12-19T08:20:44.97+00:00

    Hi Darsha,
    Tryed as suggested, Virtual Machines' filter not applying.

    thanks
    satya

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.