Azure Hybrid Benefit And Linux Vms – Azure Digital Machines

09/22/2020

eleven mins to read

In this text

Applies to: ✔️ Linux VMs ✔️ Flexible scale units

Azure Hybrid Benefit is a licensing benefit that helps you to drastically lessen the fees of running your Red Hat Enterprise Linux (RHEL) and SUSE Linux Enterprise Server (SLES) digital machines (VMs) within the cloud. With this gain, you pay for best the infrastructure fees of your VM due to the fact your RHEL or SLES subscription covers the software rate. The gain is to be had for all RHEL and SLES Marketplace pay-as-you-move (PAYG) pics.

Azure Hybrid Benefit for Linux VMs is now publicly to be had.

Benefit description

Through Azure Hybrid Benefit, you can migrate your on-premises RHEL and SLES servers to Azure through converting present RHEL and SLES PAYG VMs on Azure to carry-your-personal-subscription (BYOS) billing. Typically, VMs deployed from PAYG photographs on Azure will price both an infrastructure price and a software rate. With Azure Hybrid Benefit, PAYG VMs can be converted to a BYOS billing version without a redeployment, so you can avoid any downtime threat.

After you permit the advantage on RHEL or SLES VM, you may not be charged for the extra software price typically incurred on a PAYG VM. Instead, your VM will start accruing a BYOS charge, which includes most effective the compute hardware rate and no software fee.

You also can pick to transform a VM that has had the benefit enabled on it back to a PAYG billing model.

Scope of Azure Hybrid Benefit eligibility for Linux VMs

Azure Hybrid Benefit is to be had for all RHEL and SLES PAYG pictures from Azure Marketplace. The benefit isn’t but to be had for RHEL or SLES BYOS pix or custom pix from Azure Marketplace.

Azure Dedicated Host instances, and SQL hybrid advantages aren’t eligible for Azure Hybrid Benefit in case you’re already the usage of the advantage with Linux VMs.

Get commenced

Red Hat clients

Azure Hybrid Benefit for RHEL is to be had to Red Hat customers who meet both of those criteria:

Have energetic or unused RHEL subscriptions which are eligible to be used in Azure

Have enabled one or greater of those subscriptions to be used in Azure with the Red Hat Cloud Access program

Important

Ensure an appropriate subscription has been enabled on the cloud-access program.

To begin using the benefit for Red Hat:

Enable one or extra of your eligible RHEL subscriptions to be used in Azure via using the Red Hat Cloud Access client interface.

The Azure subscriptions which you provide at some point of the Red Hat Cloud Access enablement system will then be approved to use the Azure Hybrid Benefit feature.

Apply Azure Hybrid Benefit to any of your existing RHEL PAYG VMs and any new RHEL VMs that you set up from Azure Marketplace PAYG pictures. You can use Azure portal or Azure CLI for enabling the benefit.

Follow endorsed subsequent steps for configuring replace sources for your RHEL VMs and for RHEL subscription compliance tips.

SUSE customers

Azure Hybrid Benefit for SUSE is available to clients who’ve:

Unused SUSE subscriptions which can be eligible to use in Azure.

One or greater energetic SUSE subscriptions to use on-premises that should be moved to Azure.

Purchased subscriptions that they activated inside the SUSE Customer Center to apply in Azure.

Important

Ensure which you pick out the suitable subscription to use in Azure.

To start the use of the gain for SUSE:

Register the subscription that you obtain from SUSE or a SUSE distributor with the SUSE Customer Center.

Activate the subscription in the SUSE Customer Center.

Register your VMs which are receiving the benefit with the SUSE Customer Center to get the updates from the SUSE Customer Center.Enable and disable the gain within the Azure portal

In the Azure portal, you could permit the gain on current VMs or permit the gain on new VMs when you create the VM.

Enable the advantage for an existing VM in the Azure portal

To permit the benefit for an present VM:

Got to the Azure portal.

Open the Virtual benefit Machine web page on that you need to apply the conversion.

Go the Configuration alternative at the left. You will see the Licensing phase. To enable the AHB conversion, test the ‘Yes’ radio button and check the Confirmation checkbox.

Enable the advantage while you create the VM within the Azure portal

To enable the benefit whilst you create the VM (the SUSE workflow is similar to the RHEL example shown right here):

Go to the Azure portal.

Go to ‘Create a Virtual Machine’ web page inside the portal.

Click at the checkbox to allow AHB conversion and use cloud get right of entry to licenses.

Create a Virtual Machine following the next set of instructions.

Check the Configuration blade and you’ll see the choice enabled.

Enable and disable the advantage within the Azure CLI

You can use the az vm update command to update existing VMs. For RHEL VMs, run the command with a –license-type parameter of RHEL_BYOS. For SLES VMs, run the command with a –license-kind parameter of SLES_BYOS.

CLI instance to enable the benefit

# This will enable the gain on a RHEL VM

az vm replace -g myResourceGroup -n myVmName –license-kind RHEL_BYOS# This will enable the advantage on a SLES VM

az vm replace -g myResourceGroup -n myVmName –license-type SLES_BYOS

CLI example to disable the advantage

To disable the gain, use a –license-kind cost of None:

# This will disable the gain on a VM

az vm replace -g myResourceGroup -n myVmName –license-kind None

CLI example to allow the gain on a huge variety of VMs

To enable the advantage on a massive quantity of VMs, you may use the –ids parameter in the Azure CLI:

# This will allow the advantage on a RHEL VM. In this situation, ids.txt is an

# current text report that incorporates a delimited list of resource IDs corresponding

# to the VMs the usage of the advantage

az vm replace -g myResourceGroup -n myVmName –license-kind RHEL_BYOS –ids $(cat ids.txt)

The following examples display two strategies of getting a list of useful resource IDs: one on the aid institution degree, and one at the subscription level.

# To get a listing of all the resource IDs in a aid institution:

$(az vm list -g MyResourceGroup –query “[].id” -o tsv)# To get a list of all of the useful resource IDs of VMs in a subscription:

az vm listing jq ‘.[] VMName: .name, ResourceID: .identity’

Apply the Azure Hybrid Benefit at VM create time

In addition to applying the Azure Hybrid Benefit to existing pay-as-you-cross VMs, you can invoke it at the time of VM advent. The blessings of doing so are threefold:

You can provision both PAYG and BYOS VMs via the use of the identical photograph and manner.

It allows destiny licensing mode adjustments, something not to be had with a BYOS-simplest picture or if you bring your own VM.

The VM might be linked to Red Hat Update Infrastructure (RHUI) by means of default, to make sure that it remains up to date and stable. You can trade the updated mechanism after deployment at any time.

Check the Azure Hybrid Benefit reputation of a VM

You can view the Azure Hybrid Benefit repute of a VM with the aid of the usage of the Azure CLI or with the aid of using Azure Instance Metadata Service.

Azure CLI

You can use the az vm get-example-view command for this reason. Look for a licenseType discipline inside the reaction. If the licenseType area exists and the value is RHEL_BYOS or SLES_BYOS, your VM has the benefit enabled.

az vm get-example-view -g MyResourceGroup -n MyVm

Azure Instance Metadata Service

From inside the VM itself, you could question the attested metadata in Azure Instance Metadata Service to determine the VM’s licenseType fee. A licenseType value of RHEL_BYOS or SLES_BYOS will imply that your VM has the gain enabled. Learn greater approximately attested metadata.

Compliance

Red Hat

Customers who use Azure Hybrid Benefit for RHEL agree to the same old felony terms and privateness declaration related to the Azure Marketplace RHEL services.

Customers who use Azure Hybrid Benefit for RHEL have three options for imparting software updates and patches to the ones VMs:

Red Hat Update Infrastructure (default option)

Red Hat Satellite Server

Red Hat Subscription Manager

Customers who pick the RHUI option can retain to apply RHUI as the principle update supply for his or her Azure Hybrid Benefit RHEL VMs without attaching RHEL subscriptions to those VMs. Customers who pick the RHUI alternative are accountable for ensuring RHEL subscription compliance.

Customers who pick either Red Hat Satellite Server or Red Hat Subscription Manager have to eliminate the RHUI configuration after which attach a Cloud Access enabled RHEL subscription to their Azure Hybrid Benefit RHEL VMs.

For extra information approximately Red Hat subscription compliance, software program updates, and assets for Azure Hybrid Benefit RHEL VMs, see the Red Hat article approximately using RHEL subscriptions with Azure Hybrid Benefit.

SUSE

Customers who use Azure Hybrid Benefit need to move the Cloud Update Infrastructure to certainly one of 3 alternatives that provide software program updates and patches to the ones VMs:

SUSE Customer Center

SUSE Manager

SUSE Repository Mirroring Tool (RMT)

To use Azure Hybrid Benefit on your SLES VMs, and for facts approximately transferring from SLES PAYG to BYOS or moving from SLES BYOS to PAYG, see SUSE Linux Enterprise and Azure Hybrid Benefit.

Azure Hybrid Benefit on Reserved Instances

Azure Reservations (Azure Reserved Virtual Machine Instances) help you store money via committing to 1-12 months or three-year plans for more than one products. You can research extra approximately Reserved times here. The Azure Hybrid Benefit is available for Reserved Virtual Machine Instance(RIs).

This way that if you have purchased compute prices at a discounted price using RI, you could apply AHB benefit at the licensing prices for RHEL and SUSE on pinnacle of it. The steps to use AHB advantage for an RI example remains precisely equal as it is for a regular VM.

Note

If you’ve got already purchased reservations for RHEL or SUSE PAYG software program on Azure Marketplace, please anticipate the reservation tenure to complete earlier than the usage of the Azure Hybrid Benefit..

Frequently asked questions

Q: Can I use a license kind of RHEL_BYOS with a SLES image, or vice versa?

A: No, you can not. Trying to go into a license kind that incorrectly fits the distribution going for walks on your VM will now not replace any billing metadata. But if you accidentally input the incorrect license type, updating your VM once more to the appropriate license type will still allow the advantage.

Q: I’ve registered with Red Hat Cloud Access but nevertheless can’t enable the advantage on my RHEL VMs. What must I do?

A: It may take the time for your Red Hat Cloud Access subscription registration to propagate from Red Hat to Azure. If you still see the error after one commercial enterprise day, contact Microsoft aid.

Q: I’ve deployed a VM via using RHEL BYOS “golden photograph.” Can I convert the billing on these images from BYOS to PAYG?

A: No, you can’t. Azure Hybrid Benefit supports conversion simplest on pay-as-you-move photographs.

Q: I’ve uploaded my very own RHEL or SLES image from on-premises (via Azure Migrate, Azure Site Recovery, or in any other case) to Azure. Can I convert the billing on these images from BYOS to PAYG?

A: No, you can not. The Azure Hybrid Benefit functionality is presently to be had handiest to RHEL and SLES pictures in Azure Marketplace.

Q: I’ve uploaded my personal RHEL or SLES photo from on-premises (thru Azure Migrate, Azure Site Recovery, or otherwise) to Azure. Do I want to do whatever to gain from Azure Hybrid Benefit?

A: No, you do not. RHEL or SLES pix which you upload are already taken into consideration BYOS, and you’re charged handiest for Azure infrastructure expenses. You’re responsible for RHEL subscription fees, simply as you’re to your on-premises environments.

Q: Can I use Azure Hybrid Benefit on VMs deployed from Azure Marketplace RHEL and SLES SAP images?

A: Yes, you could. You can use the license sort of RHEL_BYOS for RHEL VMs and SLES_BYOS for conversions of VMs deployed from Azure Marketplace RHEL and SLES SAP photographs.

Q: Can I use Azure Hybrid Benefit on virtual device scale sets for RHEL and SLES?

A: Yes, Azure Hybrid Benefit on digital machine scale units for RHEL and SLES is is to be had to all users. You can examine greater about this gain and a way to use it here.

Q: Can I use Azure Hybrid Benefit on reserved instances for RHEL and SLES?

A: Yes, Azure Hybrid Benefit on reserved instance for RHEL and SLES is to be had to all customers. You can analyze more approximately this advantage and a way to use it here.

Q: Can I use Azure Hybrid Benefit on a digital system deployed for SQL Server on RHEL pics?

A: No, you can’t. There isn’t any plan for supporting these virtual machines.

Q: Can I use Azure Hybrid Benefit on my RHEL Virtual Data Center subscription?

A: No, you can not. VDC is not supported on Azure in any respect, which include AHB.

Common issues

This phase lists common problems which you would possibly encounter and steps for mitigation.

Next steps

Learn a way to create and replace VMs and upload license sorts (RHEL_BYOS, SLES_BYOS) for Azure Hybrid Benefit via using the Azure CLI

Azure Hybrid Benefit on virtual machine scale sets for RHEL and SLES is is to be had to all customers. You can learn greater about this gain and the way to use it here.