Azure Arc 在 Azure Stack HCI 23H2 (AKS 上啟用的 AKS) Azure Hybrid Benefit

適用於:Azure Stack HCI 版本 23H2

Azure Hybrid Benefit 是一個程式,可讓您大幅降低在雲端中執行工作負載的成本。 透過 Azure Arc 所啟用的 AKS Azure Hybrid Benefit,您可以將內部部署授權的價值最大化,並不需額外費用將應用程式現代化。

Arc 所啟用的 AKS Azure Hybrid Benefit 為何?

Azure Hybrid Benefit Arc 所啟用的 AKS 可協助您大幅降低在內部部署或邊緣執行 Kubernetes 的成本。 其運作方式是讓您透過軟體保證套用內部部署 Windows Server Datacenter 或標準授權, (SA) 支付 AKS 的費用。 每個 Windows Server 核心授權都有權在 AKS 的 1 個虛擬核心上使用。 關於 AKS 權益的啟用,有幾個重要詳細資料:

  • Azure Hybrid Benefit AKS Arc 的管理叢集 (或 AKS 主機) 層級啟用。 您不需要啟用工作負載叢集的優點。
  • 如果您在 Azure Stack HCI 或 Windows Server 部署上有多個 AKS,則必須針對每個部署個別啟用 Azure Hybrid Benefit。
  • 如果您在試用期間於 AKS Arc 部署上啟用 Azure Hybrid Benefit,則不會將您的試用期間失效。 權益會立即啟動,並在試用期間結束時套用。
  • 重新安裝 AKS Arc 不會自動恢復權益。 您必須針對新的部署重新啟用此權益。

如需軟體保證及其可用合約的詳細資訊,請參閱 軟體保證的優點

本文的其餘部分說明如何為 Azure Stack HCI 或 Windows Server 上的 AKS 啟用這項權益。

提示

您也可以使用適用於 Azure Stack HCI 的 Azure Hybrid Benefit 來節省成本。 如需詳細資訊,請參閱 Azure Stack HCI 的 Azure Hybrid Benefit

在設定叢集時,針對Arc啟用的AKS使用 Azure Hybrid Benefit

警告

AKS Arc 的 Azure Hybrid Benefit 不適用於配套的 OEM 合作夥伴 SKU。 如果啟用,設定就不會有任何作用。

若要在叢集建立期間啟用 AKS 的 Azure Hybrid Benefit,請在執行 az aksarc create時使用 --enable-ahub 旗標:

az aksarc create -n <cluster name> -g <resource group> --custom-location <custom location> --enable-ahub

範例輸出:

{
  "extendedLocation": { 
    "name": "<custom location>", 
    "type": "CustomLocation" 
  }, 
  "id": "/subscriptions/<subscription id>/resourceGroups/<resource group>/providers/Microsoft.Kubernetes/connectedClusters/<cluster name>/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default", 
  "name": "default", 
  "properties": { 
    "agentPoolProfiles": [ 
      { 
        "osSku": "CBLMariner", 
        "osType": "Linux", 
        "vmSize": "Standard_A4_v2" 
      } 
    ], 
    "autoScalerProfile": { 
    }, 
    "cloudProviderProfile": { 
      "infraNetworkProfile": { 
        "vnetSubnetIds": [    ] 
      } 
    }, 
    "clusterVmAccessProfile": { 
      "authorizedIpRanges": null 
    }, 
    "controlPlane": { 
      "controlPlaneEndpoint": { 
        "hostIp": null 
      }, 
      "count": 1, 
      "vmSize": "Standard_A4_v2" 
    }, 
    "kubernetesVersion": "1.25.11", 
    "licenseProfile": { 
      "azureHybridBenefit": "True" 
    }, 
    "linuxProfile": { 
      "ssh": { 
        "publicKeys": [ 
          { 
            "keyData": "<ssh key>" 
          } 
        ] 
      } 
    }, 
    "networkProfile": { 
      "networkPolicy": "calico", 
      "podCidr": "10.244.0.0/16" 
    }, 
    "provisioningState": "Succeeded", 
    "status": { 
      "controlPlaneStatus": [ 
      ], 
      "currentState": "Succeeded", 
      "errorMessage": null, 
      "operationStatus": null 
    }, 
    "storageProfile": { 
      "nfsCsiDriver": { 
        "enabled": true 
      }, 
      "smbCsiDriver": { 
        "enabled": true 
      } 
    } 
  }, 
  "resourceGroup": "<resource group>", 
  "systemData": { 
  }, 
  "type": "microsoft.hybridcontainerservice/provisionedclusterinstances" 
}

針對現有叢集上的 AKS Arc 使用 Azure Hybrid Benefit

az aksarc update使用 旗標執行 命令,--enable-ahub在尚未啟用權益的叢集上啟用 AKS 的 Azure Hybrid Benefit:

az aksarc update --name <cluster name> -g <resource group> --enable-ahub

停用 AKS Arc 的 Azure Hybrid Benefit

若要停用 AKS Arc 的 Azure Hybrid Benefit,請執行下列命令:

az aksarc update --name <cluster name> -g <resource group> --disable-ahub

範例輸出:

{ 
"extendedLocation": { 
    "name": "<custom location>", 
    "type": "CustomLocation" 
  }, 
  "id": "/subscriptions/<subscription id>/resourceGroups/<resource group>/providers/Microsoft.Kubernetes/connectedClusters/<cluster name>/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default", 
  "name": "default", 
  "properties": { 
    "agentPoolProfiles": [ 
      { 
        "osSku": "CBLMariner", 
        "osType": "Linux", 
        "vmSize": "Standard_A4_v2" 
      } 
    ], 
    "autoScalerProfile": { 
    }, 
    "cloudProviderProfile": { 
      "infraNetworkProfile": { 
        "vnetSubnetIds": [    ] 
      } 
    }, 
    "clusterVmAccessProfile": { 
      "authorizedIpRanges": null 
    }, 
    "controlPlane": { 
      "controlPlaneEndpoint": { 
        "hostIp": null 
      }, 
      "count": 1, 
      "vmSize": "Standard_A4_v2" 
    }, 
    "kubernetesVersion": "1.25.11", 
    "licenseProfile": { 
      "azureHybridBenefit": "False" 
    }, 
    "linuxProfile": { 
      "ssh": { 
        "publicKeys": [ 
          { 
            "keyData": "<ssh key>" 
          } 
        ] 
      } 
    }, 
    "networkProfile": { 
      "networkPolicy": "calico", 
      "podCidr": "10.244.0.0/16" 
    }, 
    "provisioningState": "Succeeded", 
    "status": { 
      "controlPlaneStatus": [ 
      ], 
      "currentState": "Succeeded", 
      "errorMessage": null, 
      "operationStatus": null 
    }, 
    "storageProfile": { 
      "nfsCsiDriver": { 
        "enabled": true 
      }, 
      "smbCsiDriver": { 
        "enabled": true 
      } 
    } 
  }, 
  "resourceGroup": "<resource group>", 
  "systemData": { 
  }, 
  "type": "microsoft.hybridcontainerservice/provisionedclusterinstances" 
}

維護 Azure Hybrid Benefit 的合規性

啟用 AKS Arc Azure Hybrid Benefit 之後,您必須定期檢查和維護合規性。 您可以執行您執行多少單位的清查,並針對您擁有的軟體保證授權檢查這一點。 若要判斷您執行的 AKS Azure Hybrid Benefit 叢集數目,您可以查看您的 Microsoft Azure 帳單。

若要符合 AKS Arc Azure Hybrid Benefit 資格,您必須在第一方 Microsoft 基礎結構上執行 AKS,例如 Azure Stack HCI 或 Windows Server 2019/2022,並具有適當的授權來涵蓋基礎結構。 在軟體保證期間,您只能針對 AKS Arc 使用 Azure Hybrid Benefit。 當軟體保證期限即將到期時,您必須更新與軟體保證的合約,或停用 Azure Hybrid Benefit 功能。

確認 AKS Arc 的 Azure Hybrid Benefit 已套用至我的 Microsoft Azure 帳單

請參閱 Azure 入口網站 中的成本管理和計費,以確認 AKS Arc 的 Azure Hybrid Benefit 已套用至您的 Microsoft Azure 帳單。 請注意,帳單不會即時套用。 從您啟動 Azure Hybrid Benefit 到帳單上顯示的時間,會有數小時的延遲。

下一步