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"

必要參數

--name --resource-name -n

資源名稱。 它至少必須是 3 個字元,最多 63 個字元。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

選擇性參數

--api-server-endpoint

K8s APIServer URL。 您可以指定其中一個 apiServerEndpoint 或 privateLinkResourceId。

--cluster-root-ca

已編碼 kubernetes 叢集 base64 的 RootCA 憑證。

--id

控制器 arm 資源識別碼。

--kind

活頁簿的種類。 選擇是使用者和共用。

接受的值: Kubernetes
預設值: Kubernetes
--location -l

資源的位置。

--no-wait

請勿等候長時間執行的作業完成。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--orchestrator-app-id

與 apiserver 搭配使用的 AAD 識別碼。

--orchestrator-tenant-id

伺服器應用程式識別碼的 TenantID。

--priv-link-resource-id

Private link arm 資源識別碼。您可以指定其中一個 apiServerEndpoint 或 privateLinkResourceId。

--tags

資源標記。 支援速記語法、json-file 和 yaml-file。 請嘗試 「??」 以顯示更多。

--type

用於協調器叢集的身分識別類型。 類型 'SystemAssigned' 將會使用隱含建立的身分識別協調器叢集。

接受的值: None, SystemAssigned
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --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"

選擇性參數

--force-delete

強制刪除資源。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。

--name --resource-name -n

資源名稱。 它至少必須是 3 個字元,最多 63 個字元。

--no-wait

請勿等候長時間執行的作業完成。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--yes -y

不提示確認。

預設值: False
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --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

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。

--name --resource-name -n

資源名稱。 它至少必須是 3 個字元,最多 63 個字元。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --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]

選擇性參數

--created

請等候在 'Succeeded' 使用 'provisioningState' 建立。

預設值: False
--custom

等到條件符合自訂 JMESPath 查詢為止。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。

--deleted

等到刪除為止。

預設值: False
--exists

等候資源存在。

預設值: False
--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。

--interval

輪詢間隔以秒為單位。

預設值: 30
--name --resource-name -n

資源名稱。 它至少必須是 3 個字元,最多 63 個字元。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--timeout

以秒為單位的等候上限。

預設值: 3600
--updated

等到 provisioningState 更新為 'Succeeded'。

預設值: False
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。