Skip to content

Commit eaeffa5

Browse files
authored
Merge pull request #187655 from mathapli/master
AHB for BYOS second draft
2 parents 647729e + 623d56e commit eaeffa5

File tree

4 files changed

+285
-31
lines changed

4 files changed

+285
-31
lines changed

articles/virtual-machines/TOC.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,9 @@
647647
- name: Linux
648648
displayName: Azure Hybrid Benefit, Linux, AHB
649649
href: ./linux/azure-hybrid-benefit-linux.md
650+
- name: Linux BYOS
651+
displayName: Azure Hybrid Benefit BYOS, Linux, AHB
652+
href: ./linux/azure-hybrid-benefit-byos-linux.md
650653
- name: Windows
651654
displayName: Azure Hybrid Benefit, AHB
652655
href: ./windows/hybrid-use-benefit-licensing.md
Lines changed: 246 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,246 @@
1+
---
2+
title: Azure Hybrid Benefit for BYOS Linux VMs
3+
description: Learn how Azure Hybrid Benefit can help get updates from Azure infrastructure for Linux machines on Azure.
4+
services: virtual-machines
5+
documentationcenter: ''
6+
author: mathapli
7+
manager: gachandw
8+
ms.service: virtual-machines
9+
ms.subservice: billing
10+
ms.collection: linux
11+
ms.topic: conceptual
12+
ms.workload: infrastructure-services
13+
ms.date: 02/06/2022
14+
ms.author: mathapli
15+
---
16+
17+
# How Azure Hybrid Benefit for BYOS VMs (AHB BYOS) applies for Linux virtual machines
18+
19+
>[!IMPORTANT]
20+
>The below article is scoped to Azure Hybrid Benefit for BYOS VMs (AHB BYOS) which caters to conversion of custom on-prem image VMs and RHEL or SLES BYOS VMs. For conversion of RHEL PAYG or SLES PAYG VMs, refer to [Azure Hybrid Benefit for PAYG VMs here](./azure-hybrid-benefit-linux.md).
21+
22+
>[!NOTE]
23+
>Azure Hybrid Benefit for BYOS VMs is planned for Preview from **30 March 2022**. You can [sign up for the preview here.](https://aka.ms/ahb-linux-form) You will receive a mail from Microsoft once your subscriptions are enabled for Preview.
24+
25+
26+
Azure Hybrid Benefit for BYOS VMs is a licensing benefit that helps you to get software updates and integrated support for Red Hat Enterprise Linux (RHEL) and SUSE Linux Enterprise Server (SLES) virtual machines (VMs) directly from Azure infrastructure. This benefit is available to RHEL and SLES custom on-prem image VMs (VMs generated from o- prem images), and to RHEL and SLES Marketplace bring-your-own-subscription (BYOS) VMs.
27+
28+
## Benefit description
29+
Before AHB BYOS, RHEL and SLES customers who migrated their on-prem machines to Azure by creating images of on-prem systems and migrating them as VMs on Azure did not have the flexibility to get software updates directly from Azure similar to Marketplace PAYG VMs. Hence, you needed to still buy cloud access licenses from the Enterprise Linux distributors to get security support as well as software updates. With Azure Hybrid Benefit for BYOS VMs, we will allow you to get software updates and support for on-prem custom image VMs as well as RHEL and SLES BYOS VMs similar to PAYG VMs by paying the same software fees as charged to PAYG VMs. In addition, these conversions can happen without any redeployment, so you can avoid any downtime risk.
30+
31+
:::image type="content" source="./media/ahb-linux/azure-hybrid-benefit-byos-cost.png" alt-text="Azure Hybrid Benefit cost visualization on Linux VMs.":::
32+
33+
After you enable the AHB for BYOS VMs benefit on RHEL or SLES VM, you will be charged for the additional software fee typically incurred on a PAYG VM and you will also start getting software updates typically provided to a PAYG VM.
34+
35+
You can also choose to convert a VM that has had the benefit enabled on it back to a BYOS billing model which will stop software billing and software updates from Azure infrastructure.
36+
37+
## Scope of Azure Hybrid Benefit for BYOS VMs eligibility for Linux VMs
38+
39+
**Azure Hybrid Benefit for BYOS VMs** is available for all RHEL and SLES custom on-prem image VMs as well as RHEL and SLES Marketplace BYOS VMs. For RHEL and SLES PAYG Marketplace VMs, [refer to AHB for PAYG VMs here](./azure-hybrid-benefit-linux.md)
40+
41+
Azure Dedicated Host instances, and SQL hybrid benefits are not eligible for Azure Hybrid Benefit for BYOS VMs if you're already using the benefit with Linux VMs. Virtual Machine Scale Sets (VMSS) are Reserved Instances (RIs) are not in scope for AHB BYOS.
42+
43+
## Get started
44+
45+
### Red Hat customers
46+
47+
To start using the benefit for Red Hat:
48+
49+
1. Install the 'AHBForRHEL' extension on the virtual machine on which you wish to apply the AHB BYOS benefit. This is a prerequisite before moving to next step. You can do this via the portal or use Azure CLI.
50+
51+
52+
1. Depending on the software updates you want, change the license type to relevant value. Here are the available license type values and the software updates associated with them:
53+
54+
| License Type | Software Updates | Allowed VMs|
55+
|---|---|---|
56+
| RHEL_BASE | Installs Red Hat regular/base repositories into your virtual machine. | RHEL BYOS VMs, RHEL custom on-prem image VMs|
57+
| RHEL_EUS | Installs Red Hat Extended Update Support (EUS) repositories into your virtual machine. | RHEL BYOS VMs, RHEL custom on-prem image VMs|
58+
| RHEL_SAPAPPS | Installs RHEL for SAP Business Apps repositories into your virtual machine. | RHEL BYOS VMs, RHEL custom on-prem image VMs|
59+
| RHEL_SAPHA | Installs RHEL for SAP with HA repositories into your virtual machine. | RHEL BYOS VMs, RHEL custom on-prem image VMs|
60+
| RHEL_BASESAPAPPS | Installs RHEL regular/base SAP Business Apps repositories into your virtual machine. | RHEL BYOS VMs, RHEL custom on-prem image VMs|
61+
| RHEL_BASESAPHA | Installs regular/base RHEL for SAP with HA repositories into your virtual machine.| RHEL BYOS VMs, RHEL custom on-prem image VMs|
62+
63+
1. Wait for one hour for the extension to read the license type value and install the repositories.
64+
65+
1. You should now be connected to Azure Red Hat Update Infrastructure and the relevant repositories will be installed in your machine.
66+
67+
1. In case the extension is not running by itself, you can run it on demand as well.
68+
69+
1. In case you want to switch back to the bring-your-own-subscription model, just change the license type to 'None' and run the extension. This will remove all RHUI repositories from your virtual machine and stop the billing.
70+
71+
>[!Note]
72+
> In the unlikely event that extension is not able to install repositories or there are any issues, please change the license type back to empty and reach out to support for help. This will ensure you are not getting billed for software updates.
73+
74+
75+
### SUSE customers
76+
77+
To start using the benefit for SUSE:
78+
79+
1. Install the Azure Hybrid Benefit for BYOS VMs extension on the virtual machine on which you wish to apply the AHB BYOS benefit. This is a prerequisite before moving to next step.
80+
1. Depending on the software updates you want, change the license type to relevant value. Here are the available license type values and the software updates associated with them:
81+
82+
| License Type | Software Updates | Allowed VMs|
83+
|---|---|---|
84+
| SLES_STANDARD | Installs SLES standard repositories into your virtual machine. | SLES BYOS VMs, SLES custom on-prem image VMs|
85+
| SLES_SAP | Installs SLES SAP repositories into your virtual machine. | SLES SAP BYOS VMs, SLES custom on-prem image VMs|
86+
| SLES_HPC | Installs SLES High Performance Compute related repositories into your virtual machine. | SLES HPC BYOS VMs, SLES custom on-prem image VMs|
87+
88+
1. Wait for 5 minutes for the extension to read the license type value and install the repositories.
89+
90+
1. You should now be connected to Azure SLES Update Infrastructure and the relevant repositories will be installed in your machine.
91+
92+
1. In case the extension is not running by itself, you can run it on demand as well.
93+
94+
1. In case you want to switch back to the bring-your-own-subscription model, just change the license type to 'None' and run the extension. This will remove all repositories from your virtual machine and stop the billing.
95+
96+
## Enable and disable the benefit for RHEL
97+
98+
You can install the `AHBForRHEL` extension to install the extension. After successfully installing the extension,
99+
you can use the `az vm update` command to update existing license type on running VMs. For SLES VMs, run the command and set `--license-type` parameter to one of the following: `RHEL_BASE`, `RHEL_EUS`, `RHEL_SAPHA`, `RHEL_SAPAPPS`, `RHEL_BASESAPAPPS` or `RHEL_BASESAPHA`.
100+
101+
102+
### CLI example to enable the benefit for RHEL
103+
1. Install the Azure Hybrid Benefit extension on running VM using the portal or via Azure CLI using the command below:
104+
```azurecli
105+
az vm extension set -n AHBForRHEL --publisher Microsoft.Azure.AzureHybridBenefit --vm-name myVMName --resource-group myResourceGroup
106+
```
107+
1. Once, the extension is installed successfully, change the license type based on your requirements:
108+
109+
```azurecli
110+
# This will enable the benefit to fetch software updates for RHEL base/regular repositories
111+
az vm update -g myResourceGroup -n myVmName --license-type RHEL_BASE
112+
113+
# This will enable the benefit to fetch software updates for RHEL EUS repositories
114+
az vm update -g myResourceGroup -n myVmName --license-type RHEL_EUS
115+
116+
# This will enable the benefit to fetch software updates for RHEL SAP APPS repositories
117+
az vm update -g myResourceGroup -n myVmName --license-type RHEL_SAPAPPS
118+
119+
# This will enable the benefit to fetch software updates for RHEL SAP HA repositories
120+
az vm update -g myResourceGroup -n myVmName --license-type RHEL_SAPHA
121+
122+
# This will enable the benefit to fetch software updates for RHEL BASE SAP APPS repositories
123+
az vm update -g myResourceGroup -n myVmName --license-type RHEL_BASESAPAPPS
124+
125+
# This will enable the benefit to fetch software updates for RHEL BASE SAP HA repositories
126+
az vm update -g myResourceGroup -n myVmName --license-type RHEL_BASESAPHA
127+
128+
```
129+
1. Wait for 5 minutes for the extension to read the license type value and install the repositories.
130+
131+
1. You should now be connected to Azure Red Hat Update Infrastructure and the relevant repositories will be installed in your machine. You can check the same by performing the command below on your VM which outputs installed repository packages on your VM:
132+
```bash
133+
yum repolist
134+
```
135+
1. In case the extension is not running by itself, you can try the below command on the VM using:
136+
```bash
137+
138+
```
139+
140+
## Enable and disable the benefit for SLES
141+
142+
You can install the `AHBForSLES` extension to install the extension. After successfully installing the extension,
143+
you can use the `az vm update` command to update existing license type on running VMs. For SLES VMs, run the command and set `--license-type` parameter to one of the following: `SLES_STANDARD`,`SLES_SAP` or `SLES_HPC`.
144+
145+
### CLI example to enable the benefit for SLES
146+
1. Install the Azure Hybrid Benefit extension on running VM using the portal or via Azure CLI using the command below:
147+
```azurecli
148+
az vm extension set -n AHBForSLES --publisher publisherName --vm-name myVMName --resource-group myResourceGroup
149+
```
150+
1. Once, the extension is installed successfully, change the license type based on your requirements:
151+
152+
```azurecli
153+
# This will enable the benefit to fetch software updates for SLES STANDARD repositories
154+
az vm update -g myResourceGroup -n myVmName --license-type SLES_STANDARD
155+
156+
# This will enable the benefit to fetch software updates for SLES SAP repositories
157+
az vm update -g myResourceGroup -n myVmName --license-type SLES_SAP
158+
159+
# This will enable the benefit to fetch software updates for SLES HPC repositories
160+
az vm update -g myResourceGroup -n myVmName --license-type SLES_HPC
161+
162+
```
163+
1. Wait for 5 minutes for the extension to read the license type value and install the repositories.
164+
165+
1. You should now be connected to Azure SLES Update Infrastructure and the relevant repositories will be installed in your machine. You can check the same by performing the command below on your VM which outputs installed repository packages on your VM:
166+
```bash
167+
zypper repos
168+
```
169+
170+
### CLI example to disable the benefit
171+
1. Ensure that the Azure Hybrid Benefit extension is installed on your VM.
172+
1. To disable the benefit, follow below command:
173+
174+
```azurecli
175+
# This will disable the benefit on a VM
176+
az vm update -g myResourceGroup -n myVmName --license-type None
177+
```
178+
179+
## Check the AHB BYOS status of a VM
180+
To check the status of Azure Hybrid Benefit for BYOS VM status
181+
1. Ensure that the Azure Hybrid Benefit extension is installed:
182+
1. You can view the Azure Hybrid Benefit status of a VM by using the Azure CLI or by using Azure Instance Metadata Service.
183+
184+
You can use the below command for this purpose. Look for a `licenseType` field in the response. If the `licenseType` field exists and the value is one of the below, your VM has the benefit enabled:
185+
`RHEL_BASE`, `RHEL_EUS`, `RHEL_BASESAPAPPS`, `RHEL_SAPHA`, `RHEL_BASESAPAPPS`, `RHEL_BASESAPHA`, `SLES_STANDARD`, `SLES_SAP`, `SLES_`
186+
187+
```azurecli
188+
az vm get-instance-view -g MyResourceGroup -n MyVm
189+
```
190+
191+
## Compliance
192+
193+
### Red Hat
194+
195+
Customers who use Azure Hybrid Benefit for BYOS VMs for RHEL agree to the standard [legal terms](http://www.redhat.com/licenses/cloud_CSSA/Red_Hat_Cloud_Software_Subscription_Agreement_for_Microsoft_Azure.pdf) and [privacy statement](http://www.redhat.com/licenses/cloud_CSSA/Red_Hat_Privacy_Statement_for_Microsoft_Azure.pdf) associated with the Azure Marketplace RHEL offerings.
196+
197+
### SUSE
198+
199+
To use Azure Hybrid Benefit for BYOS VMs for your SLES VMs, and for information about moving from SLES PAYG to BYOS or moving from SLES BYOS to PAYG, see [SUSE Linux Enterprise and Azure Hybrid Benefit](https://aka.ms/suse-ahb).
200+
201+
## Frequently asked questions
202+
*Q: What are the additional licensing cost I pay with AHB for BYOS VMs?*
203+
204+
A: On using AHB for BYOS VMs, you will essentially convert your bring your own subscription (BYOS) billing model to pay as you go (PAYG) billing model. Hence, you will be paying similar to PAYG VMs for software subscription cost. The table below maps the PAYG flavors available on Azure and links to pricing page to help you understand the cost associated with AHB for BYOS VMs.
205+
206+
| License type | Relevant PAYG VM image & Pricing Link (Keep the AHB for PAYG filter off) |
207+
|---|---|---|
208+
| RHEL_BASE | [Red Hat Enterprise Linux](https://azure.microsoft.com/pricing/details/virtual-machines/red-hat/) |
209+
| RHEL_SAPAPPS | [RHEL for SAP Business Applications](https://azure.microsoft.com/pricing/details/virtual-machines/rhel-sap-business/) |
210+
| RHEL_SAPHA | [RHEL for SAP with HA](https://azure.microsoft.com/pricing/details/virtual-machines/rhel-sap-ha/) |
211+
| RHEL_BASESAPAPPS [RHEL for SAP Business Applications](https://azure.microsoft.com/pricing/details/virtual-machines/rhel-sap-business/) |
212+
| RHEL_BASESAPHA | [RHEL for SAP with HA](https://azure.microsoft.com/pricing/details/virtual-machines/rhel-sap-ha/) |
213+
| RHEL_EUS | [Red Hat Enterprise Linux](https://azure.microsoft.com/pricing/details/virtual-machines/red-hat/) |
214+
| SLES_ STANDARD | [SLES Standard](https://azure.microsoft.com/pricing/details/virtual-machines/sles-standard/) |
215+
| SLES_SAP | [SLES SAP](https://azure.microsoft.com/pricing/details/virtual-machines/sles-sap/) |
216+
| SLES_HPC | [SLES HPC](https://azure.microsoft.com/pricing/details/virtual-machines/sles-hpc-standard/) |
217+
218+
*Q: Can I use a license type designated for RHEL (such as `RHEL_BASE`) with a SLES image, or vice versa?*
219+
220+
A: No, you can't. Trying to enter a license type that incorrectly matches the distribution running on your VM will fail and you might end uo getting billed incorrectly. However, if you accidentally enter the wrong license type, either changing the license type to empty will remove the billing or updating your VM again to the correct license type will still enable the benefit.
221+
222+
*Q: I've uploaded my own RHEL or SLES image from on-premises (via Azure Migrate, Azure Site Recovery, or otherwise) to Azure. Can I convert the billing on these images from BYOS to PAYG?*
223+
224+
A: Yes, this is the capability AHB for BYOS VMs supports. Please [follow steps shared here](#get-started).
225+
226+
*Q: Can I use Azure Hybrid Benefit for BYOS VMs on RHEL and SLES PAYG Marketplace VMs?*
227+
228+
A: No, as these VMs are already pay-as-you-go (PAYG). However, with AHB v1 and v2 you can use the license type of `RHEL_BYOS` for RHEL VMs and `SLES_BYOS` for conversions of RHEL and SLES PAYG Marketplace VMs. You can read more on [AHB for PAYG VMs here.](./azure-hybrid-benefit-linux.md)
229+
230+
*Q: Can I use Azure Hybrid Benefit for BYOS VMs on virtual machine scale sets for RHEL and SLES?*
231+
232+
A: No, Azure Hybrid Benefit for BYOS VMs is not available for virtual machine scale sets currently.
233+
234+
*Q: Can I use Azure Hybrid Benefit for BYOS VMs on a virtual machine deployed for SQL Server on RHEL images?*
235+
236+
A: No, you can't. There is no plan for supporting these virtual machines.
237+
238+
*Q: Can I use Azure Hybrid Benefit for BYOS VMs on my RHEL Virtual Data Center subscription?*
239+
240+
A: No, you cannot. VDC is not supported on Azure at all, including AHB.
241+
242+
243+
## Next steps
244+
* [Learn how to convert RHEL and SLES PAYG VMs to BYOS using AHB for PAYG VMs](./azure-hybrid-benefit-linux.md)
245+
246+
* [Learn how to create and update VMs and add license types (RHEL_BYOS, SLES_BYOS) for Azure Hybrid Benefit by using the Azure CLI](/cli/azure/vm)

0 commit comments

Comments
 (0)