Azure Retail Pricing API returning empty list items.

Gaurav Suman 11 Reputation points
2021-04-07T20:05:20.313+00:00

I am querying Azure Retail Pricing API to get the current pricing of the VM.
eg. https://prices.azure.com/api/retail/prices?$filter=serviceName eq 'Virtual Machines' and armRegionName eq 'eastus' and armSkuName eq 'Standard_D16_v3' and currencyCode eq 'USD'
It is returning me response as
{
"BillingCurrency": "USD",
"CustomerEntityId": "Default",
"CustomerEntityType": "Retail",
"Items": [],
"NextPageLink": null,
"Count": 0
}
Also querying all virtual machines with just armRegionName 'eastus', the API is returning results for very less no. of VMs.
https://prices.azure.com/api/retail/prices?$filter=serviceName eq 'Virtual Machines' and armRegionName eq 'eastus' and currencyCode eq 'USD'

Wanted to know if there is some mistake in the way i am querying because previously it was working fine or is there any change in the API.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,112 questions
Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,028 questions
{count} vote

2 answers

Sort by: Most helpful
  1. SwathiDhanwada-MSFT 17,326 Reputation points
    2021-04-20T04:37:57.133+00:00

    For Community Reference : Azure Retail API is working as expected.

    89247-image.png

    1 person found this answer helpful.

  2. Karan Chhabra 1 Reputation point
    2022-11-07T14:24:38.343+00:00

    Hi All,
    I want to know if I can get count of all objects/nodes in the response.
    I tried using $count, however it's not working.
    Is there any other way we can do this?

    0 comments No comments