Identify if a VM is part of a Dev/Test Offer

Dan Dorey 20 Reputation points
2023-10-12T13:51:13.05+00:00

Hi there,

At our company, many employees are able to deploy and manage their own VMs. I've read https://azure.microsoft.com/en-ca/pricing/offers/ms-azr-0023p/ and I see that windows license costs are zero for a dev/test offer.

We're looking at applying Azure Hybrid Benefits to VMs when it makes sense but we don't want to apply them to VMs that are running under a dev/test offer.

So I'm looking for a way to identify (through an API) if a VM is part of a dev/test offer. Or even simpler, if there is an API to determine if a specific offer is a dev/test one?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,586 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,448 questions
{count} votes

Accepted answer
  1. Olga Os - MSFT 5,916 Reputation points Microsoft Employee
    2023-10-12T16:07:10.3566667+00:00

    Hello Dan Dorey,

    If I understand correctly, this benefit or any other benefit or restriction applies to all resources under the subscription based on the subscription offer type. Therefore, you can simplify the request by returning only VMs that are allocated under subscriptions with the offer ID ms-azr-0023p.

    There is the post on how to retrieve Offer Type of Subscriptions via REST API.

    Hope this helps.


    If the above response was helpful, please feel free to "Accept as Answer" and "Upvote" the same so it can be beneficial to the community.

    Sincerely,

    Olga Os.

    0 comments No comments

0 additional answers

Sort by: Most helpful