Skip to content

Commit 8c80e23

Browse files
Merge pull request #265896 from vrapolinario/main
New Azure Hybrid Benefit docs page for AKS
2 parents a8d96f9 + 0f32f01 commit 8c80e23

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed

articles/aks/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,8 @@
719719
href: windows-aks-customer-stories.md
720720
- name: Migration and modernization solutions for Windows containers on AKS
721721
href: windows-aks-migration-modernization-solutions.md
722+
- name: Use Azure Hybrid Benefit
723+
href: azure-hybrid-benefit.md
722724
- name: Develop and run applications
723725
items:
724726
- name: Install existing applications with Helm

articles/aks/azure-hybrid-benefit.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
---
2+
title: Use Azure Hybrid Benefit
3+
titleSuffix: Azure Kubernetes Service
4+
description: Learn how to save costs for Windows workloads by using existing Windows Server licenses on Azure Kubernetes Service.
5+
ms.topic: article
6+
ms.date: 02/09/2024
7+
ms.author: viniap
8+
author: vrapolinario
9+
---
10+
11+
# What is Azure Hybrid Benefit for Azure Kubernetes Service?
12+
13+
Azure Hybrid Benefit is a program that enables you to significantly reduce the costs of running workloads in the cloud. With Azure Hybrid Benefit for Azure Kubernetes Service (AKS), you can maximize the value of your on-premises licenses and modernize your applications at no extra cost. Azure Hybrid Benefit enables you to use your on-premises licenses that also have either active Software Assurance (SA) or a qualifying subscription to get Windows virtual machines (VMs) on Azure at a reduced cost.
14+
15+
For more information on qualifications for Azure Hybrid Benefit, what is included with it, how to stay compliant, and more, check out [Azure Hybrid Benefit for Windows Server](/azure/virtual-machines/windows/hybrid-use-benefit-licensing).
16+
17+
>[!Note]
18+
>Azure Hybrid Benefit for Azure Kubernetes Service follows the same licensing guidance as Azure Hybrid Benefit for Windows Server VMs on Azure.
19+
20+
## Enable Azure Hybrid Benefit for Azure Kubernetes Service
21+
22+
Azure Hybrid Benefit for Azure Kubernetes Service can be enabled at cluster creation or on an existing AKS cluster. You can enable and disable Azure Hybrid Benefit using either the Azure CLI or Azure PowerShell. In the following examples, be sure to replace the variable definitions with values matching your own cluster.
23+
24+
### Use Azure CLI to manage Azure Hybrid Benefit for AKS
25+
26+
To create a new AKS cluster with Azure Hybrid Benefit enabled:
27+
28+
```azurecli
29+
PASSWORD='tempPassword1234$'
30+
RG_NAME='myResourceGroup'
31+
CLUSTER='myAKSCluster'
32+
33+
az aks create --resource-group $RG_NAME --name $CLUSTER --load-balancer-sku Standard --network-plugin azure --windows-admin-username azure --windows-admin-password $PASSWORD --enable-ahub
34+
```
35+
36+
To enable Azure Hybrid Benefit on an existing AKS cluster:
37+
38+
```azurecli
39+
RG_NAME='myResourceGroup'
40+
CLUSTER='myAKSCluster'
41+
42+
az aks update --resouce-group $RG_NAME --name $CLUSTER--enable-ahub
43+
```
44+
45+
To disable Azure Hybrid Benefit for an AKS cluster:
46+
47+
```azurecli
48+
RG_NAME='myResourceGroup'
49+
CLUSTER='myAKSCluster'
50+
51+
az aks update --resource-group $RG_NAME --name $CLUSTER --disable-ahub
52+
```
53+
54+
### Use Azure PowerShell to manage Azure Hybrid Benefit for AKS
55+
56+
To create a new AKS cluster with Azure Hybrid Benefit enabled:
57+
58+
```powershell
59+
$password= ConvertTo-SecureString -AsPlainText "Password!!123" -Force
60+
$rg_name = "myResourceGroup"
61+
$cluster = "myAKSCluster"
62+
63+
New-AzAksCluster -ResourceGroupName $rg_name -Name $cluster -WindowsProfileAdminUserName azureuser -WindowsProfileAdminUserPassword $cred -NetworkPlugin azure -NodeVmSetType VirtualMachineScaleSets --EnableAHUB
64+
```
65+
66+
To enable Azure Hybrid Benefit on an existing AKS cluster:
67+
68+
```powershell
69+
$rg_name = "myResourceGroup"
70+
$cluster = "myAKSCluster"
71+
72+
Get-AzAksCluster -ResourceGroupName $rg_name -Name $cluster | Set-AzAksCluster -EnableAHUB
73+
```
74+
75+
>[!Note]
76+
>It is currently not possible to disable Azure Hybrid Benefit for AKS using Azure PowerShell.
77+
78+
## Next steps
79+
80+
To learn more about Windows containers on AKS, see the following resources:
81+
82+
* [Learn how to deploy, manage, and monitor Windows containers on AKS](/training/paths/deploy-manage-monitor-wincontainers-aks).
83+
* Open an issue or provide feedback in the [Windows containers GitHub repository](https://github.com/microsoft/Windows-Containers/issues).
84+
* Review the [third-party partner solutions for Windows on AKS](windows-aks-partner-solutions.md).

0 commit comments

Comments
 (0)