Unable to activate Azure Hybrid Benefit on PAYG RHEL VM using Azure CLI

Solution Verified - Updated -


  • Issue while enabling the Azure Hybrid Benefit (AHB) in PAYG VM via CLI.
  • Enabling the Azure Hybrid Benefit (AHB) fails using Azure CLI but works using Azure Portal UI.
  • Enabling AHB on an existing RHEL PAYG VM via Azure CLI fails with below error:

    # az vm update -n MyVm -g MyResourceGroup --license-type RHEL_BYOS                                          
      az vm update: 'RHEL_BYOS' is not a valid value for '--license-type'. See 'az vm update --help'.


  • Red Hat Cloud Access
  • Microsoft Azure
  • Azure Hybrid Benefit

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content