當您建立 AKS Arc 叢集時,針對 Azure 入口網站 上未列出的 VM 大小進行疑難解答
當您嘗試從 Azure 入口網站 建立 AKS Arc 叢集時,您可以看到沒有列出的 VM 大小。 如果 Azure 中的 sku/預設 資源尚未建立,或因為某些原因而刪除,就會發生這種情況。 當預設資源未建立為 Azure 本機部署的一部分時,此案例可能會發生在 Azure 本機版本 2408 或更新版本中。
因應措施
執行以下命令:
$cl_id = "/subscriptions/<subscription_id>/resourceGroups/<resource_group_name>/providers/Microsoft.ExtendedLocation/customLocations/<custom_location_name>"
# Get the VM sizes using CLI (it automatically creates the **skus/default** Azure resource).
az aksarc vmsize list --custom-location $cl_id
驗證
確認 Azure 入口網站 現在會顯示正確的 VM 大小清單。