共用方式為


az connectedmachine

備註

此參考是 Azure CLI 的 connectedmachine 延伸模組的一部分(2.57.0 版或更高版本)。 當您第一次執行 az connectedmachine 命令時,擴充功能會自動安裝。 深入瞭解擴充功能

管理已啟用 Azure Arc 的伺服器。

命令

名稱 Description 類型 狀態
az connectedmachine assess-patches

評估 Azure Arc-Enabled 伺服器上的修補程式。

擴充套件 加語
az connectedmachine delete

刪除 Azure Arc-Enabled 伺服器。

擴充套件 加語
az connectedmachine extension

在 Azure Arc-Enabled 伺服器上管理 VM 擴充功能。

擴充套件 加語
az connectedmachine extension create

建立作業以建立或更新延伸模組。

擴充套件 加語
az connectedmachine extension delete

刪除作業以刪除延伸模組。

擴充套件 加語
az connectedmachine extension image

管理 Azure Arc-Enabled 伺服器可用的 VM 擴充功能元數據。

擴充套件 加語
az connectedmachine extension image list

根據位置、發行者、extensionType 列出所有擴充功能版本。

擴充套件 加語
az connectedmachine extension image show

根據位置、發行者、extensionType和版本取得延伸模組元數據。

擴充套件 加語
az connectedmachine extension list

取得非 Azure 機器的所有擴充功能。

擴充套件 加語
az connectedmachine extension show

取得作業以取得延伸模組。

擴充套件 加語
az connectedmachine extension update

更新作業以建立或更新延伸模組。

擴充套件 加語
az connectedmachine extension wait

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

擴充套件 加語
az connectedmachine install-patches

在 Azure Arc-Enabled 伺服器上安裝修補程式。

擴充套件 加語
az connectedmachine license

在 Azure Arc-Enabled 伺服器上管理 ESU 授權。

擴充套件 加語
az connectedmachine license-profile

管理 Azure Arc-Enabled 伺服器的所有隨用隨付You-Go 授權。

擴充套件 加語
az connectedmachine license-profile create

建立作業以建立授權配置檔。

擴充套件 加語
az connectedmachine license-profile delete

刪除作業以刪除授權設定檔。

擴充套件 加語
az connectedmachine license-profile list

列出可取得非 Azure 機器之所有授權配置檔的作業。

擴充套件 加語
az connectedmachine license-profile show

取得授權配置文件檢視的相關信息。

擴充套件 加語
az connectedmachine license-profile update

更新作業以更新授權配置檔。

擴充套件 加語
az connectedmachine license-profile wait

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

擴充套件 加語
az connectedmachine license create

建立授權。

擴充套件 加語
az connectedmachine license delete

刪除授權。

擴充套件 加語
az connectedmachine license list

取得非 Azure 機器的所有授權。

擴充套件 加語
az connectedmachine license show

取得授權檢視的相關信息。

擴充套件 加語
az connectedmachine license update

更新作業以更新授權。

擴充套件 加語
az connectedmachine license wait

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

擴充套件 加語
az connectedmachine list

列出指定訂用帳戶或資源群組中的所有混合式機器。

擴充套件 加語
az connectedmachine private-endpoint-connection

使用 Azure Arc-Enabled Server 管理私人端點連線。

擴充套件 加語
az connectedmachine private-endpoint-connection delete

刪除具有指定名稱的私人端點連線。

擴充套件 加語
az connectedmachine private-endpoint-connection list

列出私人連結範圍上的所有私人端點連線。

擴充套件 加語
az connectedmachine private-endpoint-connection show

取得私人端點連線。

擴充套件 加語
az connectedmachine private-endpoint-connection update

使用指定名稱更新私人端點連線。

擴充套件 加語
az connectedmachine private-endpoint-connection wait

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

擴充套件 加語
az connectedmachine private-link-resource

管理 Azure Arc-Enabled Server 的私人鏈接資源。

擴充套件 加語
az connectedmachine private-link-resource list

列出需要為 Azure 監視器 PrivateLinkScope 建立的私人鏈接資源。

擴充套件 加語
az connectedmachine private-link-resource show

取得需要為 Azure 監視器 PrivateLinkScope 建立的私人鏈接資源。

擴充套件 加語
az connectedmachine private-link-scope

管理 Azure Arc-Enabled 伺服器的私人連結範圍。

擴充套件 加語
az connectedmachine private-link-scope create

建立 Azure Arc PrivateLinkScope。 注意:您無法在 Put 作業中為 InstrumentationKey 或 AppId 指定不同的值。

擴充套件 加語
az connectedmachine private-link-scope delete

刪除 Azure Arc PrivateLinkScope。

擴充套件 加語
az connectedmachine private-link-scope list

取得資源群組或訂用帳戶的 Azure Arc PrivateLinkScopes 清單。

擴充套件 加語
az connectedmachine private-link-scope network-security-perimeter-configuration

在 Azure Arc-Enabled 伺服器上管理網路安全性周邊設定。

擴充套件 加語
az connectedmachine private-link-scope network-security-perimeter-configuration list

列出私人連結範圍的網路安全性周邊組態。

擴充套件 加語
az connectedmachine private-link-scope network-security-perimeter-configuration reconcile

強制網路安全性周邊設定重新整理私人連結範圍。

擴充套件 加語
az connectedmachine private-link-scope network-security-perimeter-configuration show

取得私人連結範圍的網路安全性周邊設定。

擴充套件 加語
az connectedmachine private-link-scope show

取得 Azure Arc PrivateLinkScope。

擴充套件 加語
az connectedmachine private-link-scope update

更新現有的 PrivateLinkScope 標籤。 若要更新其他欄位,請使用 CreateOrUpdate 方法。

擴充套件 加語
az connectedmachine private-link-scope wait

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

擴充套件 加語
az connectedmachine run-command

管理 Azure Arc-Enabled 伺服器上的執行命令。

擴充套件 預覽
az connectedmachine run-command create

建立執行命令。

擴充套件 預覽
az connectedmachine run-command delete

刪除執行命令。

擴充套件 預覽
az connectedmachine run-command list

取得非 Azure 機器的所有執行命令。

擴充套件 預覽
az connectedmachine run-command show

取得執行命令。

擴充套件 預覽
az connectedmachine run-command update

更新作業以建立或更新執行命令。

擴充套件 預覽
az connectedmachine run-command wait

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

擴充套件 預覽
az connectedmachine show

取得 Azure Arc-Enabled Server 的模型檢視或實例檢視的相關信息。

擴充套件 加語
az connectedmachine update

更新作業以更新混合式計算機。

擴充套件 加語
az connectedmachine upgrade-extension

升級計算機擴充功能。

擴充套件 加語

az connectedmachine assess-patches

評估 Azure Arc-Enabled 伺服器上的修補程式。

az connectedmachine assess-patches [--ids]
                                   [--name]
                                   [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                   [--resource-group]
                                   [--subscription]

範例

評估修補程式的範例命令

az connectedmachine assess-patches --resource-group MyResourceGroup --name MyMachine

選擇性參數

--ids

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

--name -n

混合式計算機的名稱。

--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來設定預設訂用帳戶。

全域參數
--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 connectedmachine delete

刪除 Azure Arc-Enabled 伺服器。

az connectedmachine delete [--ids]
                           [--machine-name --name]
                           [--resource-group]
                           [--subscription]
                           [--yes]

範例

刪除的範例命令

az connectedmachine delete --name myMachine --resource-group myResourceGroup

選擇性參數

--ids

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

--machine-name --name -n

混合式計算機的名稱。

--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 connectedmachine install-patches

在 Azure Arc-Enabled 伺服器上安裝修補程式。

az connectedmachine install-patches --maximum-duration
                                    --reboot-setting {Always, IfRequired, Never}
                                    [--ids]
                                    [--linux-parameters]
                                    [--name]
                                    [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                    [--resource-group]
                                    [--subscription]
                                    [--windows-parameters]

範例

安裝修補程式的範例命令

az connectedmachine install-patches --resource-group MyResourceGroup --name MyMachine --maximum-duration PT4H --reboot-setting IfRequired --windows-parameters "{"classificationsToInclude": ["Critical", "Security"]}"

必要參數

--maximum-duration

指定作業執行的時間上限。 它必須是符合 ISO 8601 規範的持續時間字串,例如 PT4H(4 小時)。

--reboot-setting

定義在軟體更新作業期間可接受重新啟動 VM 的時機。

接受的值: Always, IfRequired, Never

選擇性參數

--ids

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

--linux-parameters

Linux VM 上的 InstallPatches 輸入,如 API 支援速記語法、json-file 和 yaml-file 直接接收。 請嘗試 “??” 以顯示更多。

--name -n

混合式計算機的名稱。

--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來設定預設訂用帳戶。

--windows-parameters

Windows VM 上的 InstallPatches 輸入,如 API 支援速記語法、json-file 和 yaml-file 直接接收。 請嘗試 “??” 以顯示更多。

全域參數
--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 connectedmachine list

列出指定訂用帳戶或資源群組中的所有混合式機器。

az connectedmachine list [--expand]
                         [--max-items]
                         [--next-token]
                         [--resource-group]

範例

list 的範例命令

az connectedmachine list

選擇性參數

--expand

展開參考的資源。

--max-items

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

--next-token

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

--resource-group -g

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

全域參數
--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 connectedmachine show

取得 Azure Arc-Enabled Server 的模型檢視或實例檢視的相關信息。

az connectedmachine show [--expand {instanceView}]
                         [--ids]
                         [--machine-name --name]
                         [--resource-group]
                         [--subscription]

範例

show 的範例命令

az connectedmachine show --name myMachine --resource-group myResourceGroup

選擇性參數

--expand

要套用至作業的展開表達式。

接受的值: instanceView
--ids

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

--machine-name --name -n

混合式計算機的名稱。

--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 connectedmachine update

更新作業以更新混合式計算機。

az connectedmachine update [--agent-upgrade]
                           [--identity]
                           [--ids]
                           [--kind {AVS, AWS, EPS, GCP, HCI, SCVMM, VMware}]
                           [--location-data]
                           [--machine-name --name]
                           [--os-profile]
                           [--parent-cluster-id --parent-cluster-resource-id]
                           [--private-link-scope-id --private-link-scope-resource-id]
                           [--resource-group]
                           [--subscription]
                           [--tags]

範例

更新的範例命令

az connectedmachine update --name myMachine --resource-group myResourceGroup --location eastus2euap

選擇性參數

--agent-upgrade

計算機 w.r.t 代理程序升級支援速記語法、json-file 和 yaml-file 的資訊。 請嘗試 “??” 以顯示更多。

--identity

資源的身分識別。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

--ids

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

--kind

指出內部部署的 Arc 機器放置類型,例如 HCI、SCVMM 或 VMware 等。

接受的值: AVS, AWS, EPS, GCP, HCI, SCVMM, VMware
--location-data

與資源地理位置相關的元數據。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

--machine-name --name -n

混合式計算機的名稱。

--os-profile

指定混合式計算機的作系統設定。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

--parent-cluster-id --parent-cluster-resource-id

如果有任何的話,此計算機會指派給父叢集的資源標識符(Azure HCI)。

--private-link-scope-id --private-link-scope-resource-id

此計算機指派給私人連結範圍的資源標識符,如果有的話。

--resource-group -g

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

--subscription

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

--tags

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

全域參數
--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 connectedmachine upgrade-extension

升級計算機擴充功能。

az connectedmachine upgrade-extension [--extension-targets]
                                      [--ids]
                                      [--machine-name]
                                      [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                      [--resource-group]
                                      [--subscription]

範例

升級延伸模組的範例命令

az connectedmachine extension upgrade --machine-name "myMachineName" --resource-group "myResourceGroup" --subscription "mySubscription" --targets "{"Microsoft.Compute.CustomScriptExtension": "{"targetVersion": "1.10"}", "Microsoft.Azure.Monitoring": "{"targetVersion": "2.0"}"}"

選擇性參數

--extension-targets

描述延伸模組目標屬性。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

--ids

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

--machine-name

混合式計算機的名稱。

--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來設定預設訂用帳戶。

全域參數
--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。