az workload-orchestration
Note
此參考是 Azure CLI 工作負載 協調流程 延伸模組的一部分(2.67.0 版或更高版本)。 擴充功能會在您第一次執行 az workload-orchestration 命令時自動安裝。 深入了解擴充功能。
管理工作負載協調流程資源。
命令
az workload-orchestration init
準備一個 Arc 連接叢集進行工作負載協調,並建立上下文。
執行步驟:
- 確認叢集是否啟用 Arc 連接並啟用所需功能
- 安裝工作負載編排擴充套件的依賴性
- 安裝工作負載編排擴充
- 建立自訂位置(如果已經存在叢集綁定,則驗證)
- 建立情境資源。
az workload-orchestration init --capabilities
--cluster-name
--context-location
--context-name
--hierarchies
--location
--resource-group
[--acquire-policy-token]
[--change-reference]
[--context-resource-group]
[--custom-location-location]
[--custom-location-name]
[--custom-location-resource-group]
[--extension-dependency-version]
[--extension-name]
[--extension-version]
[--release-train]
[--site-id]
[--tags]
範例
初始化叢集並建立上下文
az workload-orchestration init -c my-cluster -g my-rg -l eastus2euap --context-name MyContext --context-location eastus --capabilities '[{"description":"desc","name":"cap1"}]' --hierarchies '[{"description":"desc","name":"country"}]'
使用特定的釋放列車
az workload-orchestration init -c my-cluster -g my-rg -l eastus2euap --release-train dev --context-name MyContext --context-location eastus --capabilities '[{"description":"desc","name":"cap1"}]' --hierarchies '[{"description":"desc","name":"country"}]'
在不同的資源群組/區域建立上下文
az workload-orchestration init -c my-cluster -g my-rg -l eastus2euap --context-name MyContext --context-resource-group ctx-rg --context-location eastus --capabilities '[{"description":"desc","name":"cap1"}]' --hierarchies '[{"description":"desc","name":"country"}]'
必要參數
能力列表。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。
| 屬性 | 值 |
|---|---|
| 參數群組: | Context Arguments |
Arc 連接的 Kubernetes 叢集名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Cluster Arguments |
Azure 區域將建立 Context。
| 屬性 | 值 |
|---|---|
| 參數群組: | Context Arguments |
要創造的情境名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Context Arguments |
階層列表。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。
| 屬性 | 值 |
|---|---|
| 參數群組: | Context Arguments |
Azure region for the custom location (例如 eastus2euap).
Arc-連通叢集的資源群組。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
自動取得 Azure 原則 令牌以進行此資源操作。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
相關變更的 ID 是為此資源操作所參考的。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
資源群組,將建立上下文。 預設值:與 --resource-group 相同。
| 屬性 | 值 |
|---|---|
| 參數群組: | Context Arguments |
Azure 區域,將建立自訂位置。 預設值:和 --location 一樣。
| 屬性 | 值 |
|---|---|
| 參數群組: | Cluster Arguments |
自訂地點的名稱。 預設值:{cluster-name}-cl。
| 屬性 | 值 |
|---|---|
| 參數群組: | Cluster Arguments |
資源群組會建立自訂位置。 預設值:與 --resource-group 相同。
| 屬性 | 值 |
|---|---|
| 參數群組: | Cluster Arguments |
腳位相依擴充版本。 支援的關鍵字:iotplatform。 範例:iotplatform=0.7.6, {iotplatform:0.7.6}, deps.json. 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。
| 屬性 | 值 |
|---|---|
| 參數群組: | Cluster Arguments |
WO 擴充資源的名稱。 預設:wo-extension。
| 屬性 | 值 |
|---|---|
| 參數群組: | Cluster Arguments |
要安裝特定的 WO 擴充套件版本。
| 屬性 | 值 |
|---|---|
| 參數群組: | Cluster Arguments |
延長釋放列車。 預設:穩定。
| 屬性 | 值 |
|---|---|
| 參數群組: | Cluster Arguments |
ARM 資源 ID 用於在建立上下文後自動建立網站參考。
| 屬性 | 值 |
|---|---|
| 參數群組: | Context Arguments |
情境資源標籤。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。
| 屬性 | 值 |
|---|---|
| 參數群組: | Context Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az workload-orchestration sync
為自訂地點同步工作負載編排資源。
az workload-orchestration sync --custom-location
[--acquire-policy-token]
[--change-reference]
[--local-connected-registry-ip]
範例
為自訂地點同步資源
az workload-orchestration sync --custom-location /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ExtendedLocation/customLocations/myCustomLocation
必要參數
自訂地點的資源 ID。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
自動取得 Azure 原則 令牌以進行此資源操作。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
相關變更的 ID 是為此資源操作所參考的。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
新叢集上本地連接登錄檔的 IP 位址。 如果任何解決方案都未啟用分階段,則不需使用。 如果啟用暫存但未提供此值,同步這些解決方案將失敗。 當值提供時,會在設定中設定,並安裝啟用 staging 的新版本解決方案。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |