Azure Retail Pricing API - Reservations with and without Azure Hybrid Use Benefit

Tim Butters 1 Reputation point
2022-11-01T09:39:47.56+00:00

Hi there,

We are trying to utilise the Retail API to pull some pricing for virtual machines.

I can get the following;

PAYG,
PAYG with AHUB
1 Year Reserved Instance with AHUB
3 Year Reserved Instance with AHUB

I cannot however retrieve Reserved Instance pricing (both 1 year and 3 year) without AHUB. The pricing calculator allows for this selection, but it appears the Retail Prices API does not.

Example;

https://prices.azure.com/api/retail/prices?currencyCode=GBP&$filter=armSkuName eq 'Standard_D1_v2' and armRegionName eq 'uksouth' and serviceFamily eq 'Compute' and serviceName eq 'Virtual Machines'

This only brings 2 Reservation Type prices back (along with other Consumption ones) - both 1 Year and 3 Year with AHUB. It does not bring back the Reservation prices without - which I would have expected to have a "Windows" appended to the productName

![![255940-image.png][1]][2]

![256031-image.png][3]

I therefore do not know how I can calculate the Windows license cost for Reservation type prices. I attempted to do a calculation on the difference between a PAYG and PAYG AHUB to establish the Windows license cost, but it appears the Windows license cost changes on the Azure Pricing Calculator when you select Reserved Instances.

Help!

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,991 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,692 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Alan Kinane 16,906 Reputation points MVP
    2022-11-01T13:57:05.623+00:00

    Azure Reservations do not include any licensing so you will not see the licensing as part of this product. There should be a separate "Windows Server" product which is the license only cost and it will have a per vCPU price attached, e.g. "Windows Server - 1vCPU VM" but this price will vary somewhat depending on the VM type, for example Bs series VMs have a much lower per vCPU Windows Server license cost.

    Basically, you would need to price these two products separately.


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.