az dnc orchestrator-instance-service
注意
此參考是 Azure CLI 的 dnc 延伸模組的一部分 (2.51.0 版或更高版本)。 擴充功能會在您第一次執行 az dnc orchestrator-instance-service 命令時自動安裝。 深入了解擴充功能。
命令群組 'az dnc' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
使用 dnc 管理協調器實例服務。
命令
名稱 | Description | 類型 | 狀態 |
---|---|---|---|
az dnc orchestrator-instance-service create |
建立協調器實例。 |
擴充 | 預覽版 |
az dnc orchestrator-instance-service delete |
刪除 Orchestrator 實例。 |
擴充 | 預覽版 |
az dnc orchestrator-instance-service show |
取得協調器實例的詳細資料。 |
擴充 | 預覽版 |
az dnc orchestrator-instance-service wait |
將 CLI 置於等候狀態,直到符合條件為止。 |
擴充 | 預覽版 |
az dnc orchestrator-instance-service create
命令群組 'az dnc orchestrator-instance-service' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
建立協調器實例。
az dnc orchestrator-instance-service create --name
--resource-group
[--api-server-endpoint]
[--cluster-root-ca]
[--id]
[--kind {Kubernetes}]
[--location]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--orchestrator-app-id]
[--orchestrator-tenant-id]
[--priv-link-resource-id]
[--tags]
[--type {None, SystemAssigned}]
範例
建立協調器實例
az dnc orchestrator-instance-service create --type "SystemAssigned" --location "West US" --kind "Kubernetes" --api-server-endpoint "https://testk8s.cloudapp.net" --cluster-root-ca "ddsadsad344mfdsfdl" --id "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.DelegatedNetwork/controller/testcontroller" --orchestrator-app-id "546192d7-503f-477a-9cfe-4efc3ee2b6e1" --orchestrator-tenant-id "da6192d7-503f-477a-9cfe-4efc3ee2b6c3" --priv-link-resource-id "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Network/privateLinkServices/plresource1" --resource-group "TestRG" --resource-name "testk8s1"
必要參數
資源名稱。 它至少必須是 3 個字元,最多 63 個字元。
資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>
。
選擇性參數
K8s APIServer URL。 您可以指定其中一個 apiServerEndpoint 或 privateLinkResourceId。
已編碼 kubernetes 叢集 base64 的 RootCA 憑證。
控制器 arm 資源識別碼。
活頁簿的種類。 選擇是使用者和共用。
資源的位置。
請勿等候長時間執行的作業完成。
與 apiserver 搭配使用的 AAD 識別碼。
伺服器應用程式識別碼的 TenantID。
Private link arm 資源識別碼。您可以指定其中一個 apiServerEndpoint 或 privateLinkResourceId。
資源標記。 支援速記語法、json-file 和 yaml-file。 請嘗試 「??」 以顯示更多。
用於協調器叢集的身分識別類型。 類型 'SystemAssigned' 將會使用隱含建立的身分識別協調器叢集。
全域參數
增加記錄詳細資訊,以顯示所有偵錯記錄。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。
az dnc orchestrator-instance-service delete
命令群組 'az dnc orchestrator-instance-service' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
刪除 Orchestrator 實例。
az dnc orchestrator-instance-service delete [--force-delete {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
[--yes]
範例
刪除協調器實例
az dnc orchestrator-instance-service delete --resource-group "TestRG" --resource-name "testk8s1"
選擇性參數
強制刪除資源。
一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。
資源名稱。 它至少必須是 3 個字元,最多 63 個字元。
請勿等候長時間執行的作業完成。
資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>
。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
不提示確認。
全域參數
增加記錄詳細資訊,以顯示所有偵錯記錄。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。
az dnc orchestrator-instance-service show
命令群組 'az dnc orchestrator-instance-service' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
取得協調器實例的詳細資料。
az dnc orchestrator-instance-service show [--ids]
[--name]
[--resource-group]
[--subscription]
範例
取得協調器實例的詳細資料
az dnc orchestrator-instance-service show --resource-group "TestRG" --resource-name "testk8s1"
選擇性參數
一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。
資源名稱。 它至少必須是 3 個字元,最多 63 個字元。
資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>
。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
全域參數
增加記錄詳細資訊,以顯示所有偵錯記錄。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。
az dnc orchestrator-instance-service wait
命令群組 'az dnc orchestrator-instance-service' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
將 CLI 置於等候狀態,直到符合條件為止。
az dnc orchestrator-instance-service wait [--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--name]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
選擇性參數
請等候在 'Succeeded' 使用 'provisioningState' 建立。
等到條件符合自訂 JMESPath 查詢為止。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。
等到刪除為止。
等候資源存在。
一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。
輪詢間隔以秒為單位。
資源名稱。 它至少必須是 3 個字元,最多 63 個字元。
資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>
。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
以秒為單位的等候上限。
等到 provisioningState 更新為 'Succeeded'。
全域參數
增加記錄詳細資訊,以顯示所有偵錯記錄。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。