Rediģēt

Kopīgot, izmantojot


What is Azure Hybrid Benefit for Azure Kubernetes Service?

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.

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.

Note

Azure Hybrid Benefit for Azure Kubernetes Service follows the same licensing guidance as Azure Hybrid Benefit for Windows Server VMs on Azure.

Enable Azure Hybrid Benefit for Azure Kubernetes Service

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.

To create a new AKS cluster with Azure Hybrid Benefit enabled:

PASSWORD='' # replace with your own password value
RG_NAME='myResourceGroup'
CLUSTER='myAKSCluster'

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 \
    --generate-ssh-keys

To enable Azure Hybrid Benefit on an existing AKS cluster:

RG_NAME='myResourceGroup'
CLUSTER='myAKSCluster'

az aks update --resouce-group $RG_NAME --name $CLUSTER--enable-ahub

Disable Azure Hybrid Benefit for Azure Kubernetes Service

To disable Azure Hybrid Benefit for an AKS cluster:

RG_NAME='myResourceGroup'
CLUSTER='myAKSCluster'

az aks update --resource-group $RG_NAME --name $CLUSTER --disable-ahub

Next steps

To learn more about Windows containers on AKS, see the following resources: