az workload-manager workload-space runtime-link

Note

此參考是 Azure CLI(版本 2.75.0 或更高版本)工作負載管理器擴充的一部分。 這個擴充功能會在你第一次執行 az workload-manager workload-space runtime-link 指令時自動安裝。 深入了解擴充功能。

管理執行時連結。

命令

名稱 Description 類型 狀態
az workload-manager workload-space runtime-link create

建立執行時連結。

Extension GA
az workload-manager workload-space runtime-link delete

刪除執行時連結,但不刪除其執行時綁定。

Extension GA
az workload-manager workload-space runtime-link list

在工作負載空間中列出執行時連結。

Extension GA
az workload-manager workload-space runtime-link show

取得執行時的連結。

Extension GA
az workload-manager workload-space runtime-link update

更新可變的執行時連結屬性。

Extension GA
az workload-manager workload-space runtime-link wait

將 CLI 置於等候狀態,直到符合條件為止。

Extension GA

建立執行時連結。

az workload-manager workload-space runtime-link create --link-name --name
                                                       --resource-group
                                                       --space-name
                                                       [--acquire-policy-token]
                                                       [--capacity-profile]
                                                       [--change-reference]
                                                       [--execution-binding --execution-binding-resource-id]
                                                       [--integration-profile]
                                                       [--location]
                                                       [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                                       [--orchestrator-binding --orchestrator-binding-resource-id]
                                                       [--tags]

建立僅限 Kubernetes 的執行時連結

az workload-manager workload-space runtime-link create --resource-group rg-workload --space-name managed-agents-prod --link-name kubernetes-only --location eastus2 --orchestrator-binding /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-workload/providers/Microsoft.Compute/workloadSpaces/managed-agents-prod/runtimeBindings/customer-aks

建立 Kubernetes 與無伺服器容器之間的執行時連結

az workload-manager workload-space runtime-link create --resource-group rg-workload --space-name managed-agents-prod --link-name default --location eastus2 --orchestrator-binding /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-workload/providers/Microsoft.Compute/workloadSpaces/managed-agents-prod/runtimeBindings/kubernetes-default --execution-binding /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-workload/providers/Microsoft.Compute/workloadSpaces/managed-agents-prod/runtimeBindings/serverless-default --capacity-profile "{minimum-nodes:1,maximum-nodes:100}"
--link-name --name -n

RuntimeLink 的名稱。

--resource-group -g

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

--space-name

WorkloadSpace 的名稱。

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--acquire-policy-token

自動取得 Azure 原則 令牌以進行此資源操作。

屬性 值
參數群組: Global Policy Arguments
--capacity-profile

執行時組合的可變容量策略。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

屬性 值
參數群組: Properties Arguments
--change-reference

相關變更的 ID 是為此資源操作所參考的。

屬性 值
參數群組: Global Policy Arguments
--execution-binding --execution-binding-resource-id

可選的兄弟執行時綁定,提供執行功能。

屬性 值
參數群組: Properties Arguments
--integration-profile

提供者整合身份設定。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

屬性 值
參數群組: Properties Arguments
--location -l

未指定資源所在的地理位置,將會使用資源群組的位置。

屬性 值
參數群組: Resource Arguments
--no-wait

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

屬性 值
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--orchestrator-binding --orchestrator-binding-resource-id

提供編排的兄弟執行時綁定。

屬性 值
參數群組: Properties Arguments
--tags

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

屬性 值
參數群組: Resource Arguments
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性 值
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性 值
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性 值
預設值: False

刪除執行時連結,但不刪除其執行時綁定。

az workload-manager workload-space runtime-link delete [--acquire-policy-token]
                                                       [--change-reference]
                                                       [--ids]
                                                       [--link-name --name]
                                                       [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                                       [--resource-group]
                                                       [--space-name]
                                                       [--subscription]
                                                       [--yes]

刪除執行時連結

az workload-manager workload-space runtime-link delete --resource-group rg-workload --space-name managed-agents-prod --link-name default

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--acquire-policy-token

自動取得 Azure 原則 令牌以進行此資源操作。

屬性 值
參數群組: Global Policy Arguments
--change-reference

相關變更的 ID 是為此資源操作所參考的。

屬性 值
參數群組: Global Policy Arguments
--ids

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

屬性 值
參數群組: Resource Id Arguments
--link-name --name -n

RuntimeLink 的名稱。

屬性 值
參數群組: Resource Id Arguments
--no-wait

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

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

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

屬性 值
參數群組: Resource Id Arguments
--space-name

WorkloadSpace 的名稱。

屬性 值
參數群組: Resource Id Arguments
--subscription

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

屬性 值
參數群組: Resource Id Arguments
--yes -y

不提示確認。

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

提高日誌詳細程度以顯示所有調試日誌。

屬性 值
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性 值
預設值: False
--output -o

輸出格式。

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

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性 值
預設值: False

在工作負載空間中列出執行時連結。

az workload-manager workload-space runtime-link list --resource-group
                                                     --space-name
                                                     [--max-items]
                                                     [--next-token]

在工作負載空間中列出執行時連結

az workload-manager workload-space runtime-link list --resource-group rg-workload --space-name managed-agents-prod
--resource-group -g

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

--space-name

WorkloadSpace 的名稱。

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--max-items

命令輸出中要傳回的項目總數。 如果可用的專案總數超過指定的值,則會在命令的輸出中提供令牌。 若要繼續分頁,請在後續命令的 --next-token 自變數中提供令牌值。

屬性 值
參數群組: Pagination Arguments
--next-token

標記,指定要開始分頁的位置。 這是先前截斷回應中的令牌值。

屬性 值
參數群組: Pagination Arguments
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性 值
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性 值
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性 值
預設值: False

取得執行時的連結。

az workload-manager workload-space runtime-link show [--ids]
                                                     [--link-name --name]
                                                     [--resource-group]
                                                     [--space-name]
                                                     [--subscription]

取得執行時連結

az workload-manager workload-space runtime-link show --resource-group rg-workload --space-name managed-agents-prod --link-name default

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--ids

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

屬性 值
參數群組: Resource Id Arguments
--link-name --name -n

RuntimeLink 的名稱。

屬性 值
參數群組: Resource Id Arguments
--resource-group -g

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

屬性 值
參數群組: Resource Id Arguments
--space-name

WorkloadSpace 的名稱。

屬性 值
參數群組: Resource Id Arguments
--subscription

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

屬性 值
參數群組: Resource Id Arguments
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性 值
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性 值
預設值: False
--output -o

輸出格式。

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

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性 值
預設值: False

更新可變的執行時連結屬性。

az workload-manager workload-space runtime-link update [--acquire-policy-token]
                                                       [--capacity-profile]
                                                       [--change-reference]
                                                       [--ids]
                                                       [--link-name --name]
                                                       [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                                       [--resource-group]
                                                       [--space-name]
                                                       [--subscription]
                                                       [--tags]

更新執行時連結容量

az workload-manager workload-space runtime-link update --resource-group rg-workload --space-name managed-agents-prod --link-name default --capacity-profile "{minimum-nodes:2,maximum-nodes:150}"

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--acquire-policy-token

自動取得 Azure 原則 令牌以進行此資源操作。

屬性 值
參數群組: Global Policy Arguments
--capacity-profile

執行時組合的可變容量策略。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

屬性 值
參數群組: Properties Arguments
--change-reference

相關變更的 ID 是為此資源操作所參考的。

屬性 值
參數群組: Global Policy Arguments
--ids

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

屬性 值
參數群組: Resource Id Arguments
--link-name --name -n

RuntimeLink 的名稱。

屬性 值
參數群組: Resource Id Arguments
--no-wait

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

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

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

屬性 值
參數群組: Resource Id Arguments
--space-name

WorkloadSpace 的名稱。

屬性 值
參數群組: Resource Id Arguments
--subscription

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

屬性 值
參數群組: Resource Id Arguments
--tags

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

屬性 值
參數群組: Properties Arguments
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性 值
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性 值
預設值: False
--output -o

輸出格式。

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

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性 值
預設值: False

將 CLI 置於等候狀態,直到符合條件為止。

az workload-manager workload-space runtime-link wait [--acquire-policy-token]
                                                     [--change-reference]
                                                     [--created]
                                                     [--custom]
                                                     [--deleted]
                                                     [--exists]
                                                     [--ids]
                                                     [--interval]
                                                     [--link-name --name]
                                                     [--resource-group]
                                                     [--space-name]
                                                     [--subscription]
                                                     [--timeout]
                                                     [--updated]

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--acquire-policy-token

自動取得 Azure 原則 令牌以進行此資源操作。

屬性 值
參數群組: Global Policy Arguments
--change-reference

相關變更的 ID 是為此資源操作所參考的。

屬性 值
參數群組: Global Policy Arguments
--created

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

屬性 值
參數群組: Wait Condition Arguments
預設值: False
--custom

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

屬性 值
參數群組: Wait Condition Arguments
--deleted

等到刪除為止。

屬性 值
參數群組: Wait Condition Arguments
預設值: False
--exists

等候資源存在。

屬性 值
參數群組: Wait Condition Arguments
預設值: False
--ids

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

屬性 值
參數群組: Resource Id Arguments
--interval

輪詢間隔以秒為單位。

屬性 值
參數群組: Wait Condition Arguments
預設值: 30
--link-name --name -n

RuntimeLink 的名稱。

屬性 值
參數群組: Resource Id Arguments
--resource-group -g

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

屬性 值
參數群組: Resource Id Arguments
--space-name

WorkloadSpace 的名稱。

屬性 值
參數群組: Resource Id Arguments
--subscription

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

屬性 值
參數群組: Resource Id Arguments
--timeout

以秒為單位的等候上限。

屬性 值
參數群組: Wait Condition Arguments
預設值: 3600
--updated

等到 provisioningState 更新為 'Succeeded'。

屬性 值
參數群組: Wait Condition Arguments
預設值: False
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性 值
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性 值
預設值: False
--output -o

輸出格式。

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

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性 值
預設值: False