Missing data in azure retail price api

Allan Zimmermannd 0 Reputation points
2023-08-14T10:44:36.4633333+00:00

Hey fellow azure fan boys.

I'm working on a project were we need to find exact retail prices on various azure products.
We are having some issues with finding prices on certain SQL products.

If i go to https://azure.microsoft.com/en-us/pricing/calculator add "Azure SQL Database"
Select "West Europe", "Single Database", "vCore", "General Purpose", "Provisioned", "Gen 5", "2 vCore"
I can find the same prices in retail API with this https://prices.azure.com/api/retail/prices?$filter=location eq 'EU West' and serviceName eq 'SQL Database' and skuName eq '2 vCore' and productName eq 'SQL Database Single General Purpose - Serverless - Compute Gen5'

If i change to "20 vCore" i should be able to find the same with this URL, but this returns 0 hit's
https://prices.azure.com/api/retail/prices?$filter=location eq 'EU West' and serviceName eq 'SQL Database' and skuName eq '20 vCore' and productName eq 'SQL Database Single General Purpose - Serverless - Compute Gen5'

If i get them all ( by removing the skuname ) these is nothing the would describe the one with 20 vCore. So this seem to only exist in the price calculator and azure portal, but not in the price list.

What am I missing here, how do i find the "SKU" for 20 vCore and calculate the price for this ?

sub question, we also seem to find SKU's that does not exist in the price calculator and portal, like the one with
48 vCore
https://prices.azure.com/api/retail/prices?$filter=location eq 'EU West' and serviceName eq 'SQL Database' and skuName eq '48 vCore' and productName eq 'SQL Database Single General Purpose - Serverless - Compute Gen5'
How can I tell from the returned response, this is not available

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

1 answer

Sort by: Most helpful
  1. Gaurav, Shwetabh 0 Reputation points
    2024-03-28T04:25:15.2466667+00:00

    Hi Team,

    I looked at the api response but I could not find the data associated with Standard_D2as_V5 SKU. Do I need adding certain query parameters to fetch the data of all available SKUs

    0 comments No comments