How to get the Operating System (OS) and OS type from the Azure Retail Prices

Adi Cohen 0 Reputation points
2024-02-07T10:26:01.42+00:00

Hi, I'm using the Azure Retail Prices API to programmatically fetch VMs pricing - https://learn.microsoft.com/en-us/rest/api/cost-management/retail-prices/azure-retail-prices When I try to understand VM Pricing info using the above endpoint I cannot tell which Operating System is installed - Is it Windows ? Linux ? What type of Linux ? How can I get this info and from where ? I know that the Pricing Calculator holds such info but for some reason I cannot find it using the API.
Any help here would be appreciated, Thanks

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

1 answer

Sort by: Most helpful
  1. SadiqhAhmed-MSFT 41,716 Reputation points Microsoft Employee
    2024-02-08T19:47:57.6533333+00:00

    Hello @Adi Cohen Thank you for contacting us on Microsoft Q&A platform. Happy to answer any questions you may have!

    Based on the details provided in the description, I understand that you are using the Azure Retail Prices API to programmatically fetch VMs pricing and would like to know which OS is installed (Windows or Linux) and its types.

    The Retail price for VM pricing, the product name will define. If it includes Windows, then the meter is with Windows license. If it does not have Windows, then it is Linux. For DevTest workload, the Windows OS is not charged so for Dev/Test workload even with Windows OS will be billed on Linux meter itself. 

    Hope this answers your question. Please write back to us if you have any further questions.


    If the response helped, do "Accept Answer" and up-vote it

    0 comments No comments