Azure Arc で有効になっている AKS のAzure ハイブリッド特典 (AKS on Azure Stack HCI 23H2)

適用対象: Azure Stack HCI バージョン 23H2

Azure ハイブリッド特典は、クラウドでワークロードを実行するコストを大幅に削減できるプログラムです。 Azure Arc で有効になっている AKS のAzure ハイブリッド特典を使用すると、オンプレミス ライセンスの価値を最大化し、追加コストなしでアプリケーションを最新化できます。

Arc で有効になっている AKS のAzure ハイブリッド特典は何ですか?

Arc で有効になっている AKS のAzure ハイブリッド特典は、オンプレミスまたはエッジで Kubernetes を実行するコストを大幅に削減するのに役立ちます。 これは、ソフトウェア アシュアランス (SA) を使用してオンプレミスの Windows Server Datacenter または Standard ライセンスを適用して、AKS の料金を支払うことで機能します。 各 Windows Server コア ライセンスにより、AKS の 1 つの仮想コアでの使用資格が得られます。 AKS の特典のアクティブ化に関して注意すべき重要な詳細がいくつかあります。

  • AKS Arc のAzure ハイブリッド特典は、管理クラスター (または AKS ホスト) レベルで有効になります。 ワークロード クラスターの特典を有効にする必要はありません。
  • 複数の AKS on Azure Stack HCI または Windows Server デプロイがある場合は、デプロイごとに個別にAzure ハイブリッド特典を有効にする必要があります。
  • 試用期間中に AKS Arc デプロイでAzure ハイブリッド特典を有効にしても、試用期間は無効になりません。 特典はすぐにアクティブ化され、試用期間の終了時に適用されます。
  • AKS Arc を再インストールしても、特典は自動的に復帰しません。 新しいデプロイでは、この特典を再アクティブ化する必要があります。

ソフトウェア アシュアランスの詳細と、利用可能な契約の詳細については、「 ソフトウェア アシュアランスの利点」を参照してください。

この記事の残りの部分では、AKS on Azure Stack HCI または Windows Server でこの特典をアクティブ化する方法について説明します。

ヒント

Azure Stack HCI のAzure ハイブリッド特典を使用することで、コスト削減を最大化できます。 詳細については、「Azure Stack HCI のAzure ハイブリッド特典」を参照してください。

クラスターの設定時に Arc で有効になっている AKS のAzure ハイブリッド特典を使用する

警告

AKS Arc のAzure ハイブリッド特典は、バンドルされた OEM パートナー SKU では機能しません。 有効にすると、設定は無効になります。

クラスターの作成時に AKS のAzure ハイブリッド特典を有効にするには、 を実行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 ハイブリッド特典を使用する

フラグを指定して コマンドをaz aksarc update--enable-ahub実行し、特典が有効になっていないクラスターで Arc によって有効になっている AKS のAzure ハイブリッド特典をアクティブにします。

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

AKS Arc のAzure ハイブリッド特典を非アクティブ化する

AKS Arc のAzure ハイブリッド特典を非アクティブ化するには、次のコマンドを実行します。

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 ハイブリッド特典のコンプライアンスを維持する

AKS Arc のAzure ハイブリッド特典をアクティブ化した後は、定期的にチェックし、コンプライアンスを維持する必要があります。 実行しているユニット数のインベントリを実行し、所有しているソフトウェア アシュアランス ライセンスに対してこれをチェックできます。 実行する AKS のAzure ハイブリッド特典を含むクラスターの数を確認するには、Microsoft Azure の請求書を確認できます。

AKS Arc のAzure ハイブリッド特典の資格を得るには、Azure Stack HCI や Windows Server 2019/2022 などのファースト パーティの Microsoft インフラストラクチャで AKS を実行し、基になるインフラストラクチャをカバーするための適切なライセンスを持っている必要があります。 ソフトウェア アシュアランス期間中は、AKS Arc に対してAzure ハイブリッド特典のみを使用できます。 ソフトウェア アシュアランス期間が期限切れになったら、ソフトウェア アシュアランスとの契約を更新するか、Azure ハイブリッド特典機能を非アクティブ化する必要があります。

AKS Arc のAzure ハイブリッド特典が Microsoft Azure の請求書に適用されていることを確認する

AKS Arc のAzure ハイブリッド特典が Microsoft Azure の請求書に適用されたことを確認するには、Azure portalのコスト管理と課金に関するページを参照してください。 課金はリアルタイムでは適用されないことに注意してください。 Azure ハイブリッド特典をアクティブ化してから請求書に表示されるまで、数時間の遅延があります。

次の手順