Azure adds programmatic pricing API to help you sniff out global deals
- Reference: 1618470341
- News link: https://www.theregister.co.uk/2021/04/15/azure_retail_rates_api_adds_16_currencies/
- Source link:
“Azure customers have been looking for a programmatic way to retrieve retail prices for all Azure services in different currencies,” because until now learning Azure prices has required either the Azure Pricing Calculator or use the Azure portal.
[1]
Those tools are rather hands-on. Yet Azure has 54 regions and over 6,000 services.
The new API, currently in public preview, makes Azure prices available at https://prices.azure.com/api/retail/prices .
[2]
There’s syntax to learn if you want to make this work, in the form of the following filters:
armRegionName
Location
meterId
meterName
productid
skuId
productName
skuName
serviceName
serviceId
serviceFamily
priceType
armSkuName
As an example of that lot at work, here’s how to find prices for compute resources in Euros:
https://prices.azure.com/api/retail/prices?currencyCode='EUR'&$filter=serviceFamily eq 'Compute' .
Output is in JSON: {
“;currencyCode”;: “;USD”;,
“;tierMinimumUnits”;: 0.0,
“;retailPrice”;: 0.176346,
“;unitPrice”;: 0.176346,
“;armRegionName”;: “;westeurope”;,
“;location”;: “;EU West”;,
“;effectiveStartDate”;: “;2020-08-01T00:00:00Z”;,
“;meterId”;: “;000a794b-bdb0-58be-a0cd-0c3a0f222923”;,
“;meterName”;: “;F16s Spot”;,
“;productId”;: “;DZH318Z0BQPS”;,
“;skuId”;: “;DZH318Z0BQPS/00TG”;,
“;productName”;: “;Virtual Machines FS Series Windows”;,
“;skuName”;: “;F16s Spot”;,
“;serviceName”;: “;Virtual Machines”;,
“;serviceId”;: “;DZH313Z7MMC8”;,
“;serviceFamily”;: “;Compute”;,
“;unitOfMeasure”;: “;1 Hour”;,
“;type”;: “;DevTestConsumption”;,
“;isPrimaryMeterRegion”;: true,
“;armSkuName”;: “;Standard_F16s”;
}
Why JSON? Because Microsoft thinks you’ll “create your own tools for internal analysis and price comparison across SKUs and regions.”
Which may be a bit of a stretch for many, especially as big Azure users tend to negotiate prices rather than rely on retail rates.
The supported currencies are:
US dollar
Australian dollar
Brazilian real
Canadian dollar
Swiss franc
Chinese yuan
Danish krone
Euros
British pound
Indian rupee
Japanese yen
Korean won
Norwegian krone
New Zealand dollar
Russian ruble
Swedish krona
Taiwan dollar
[3]
Microsoft's not said when the service will exit preview and become official. ®
Get our [4]Tech Resources
[1] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_offprem/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2YHgOvukP4UlNsSrY5qRt4gAAAAk&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0
[2] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_offprem/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33YHgOvukP4UlNsSrY5qRt4gAAAAk&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0
[3] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_offprem/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44YHgOvukP4UlNsSrY5qRt4gAAAAk&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[4] https://whitepapers.theregister.com/