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?
Azure Retail Pricing API returning empty list items.
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.
2 answers
Sort by: Newest
-
Karan Chhabra 1 Reputation point
2022-11-07T14:24:38.343+00:00 -
SwathiDhanwada-MSFT 17,641 Reputation points
2021-04-20T04:37:57.133+00:00 For Community Reference : Azure Retail API is working as expected.