共用方式為


az arcgateway

Note

This reference is part of the arcgateway extension for the Azure CLI (version 2.57.0 or higher). The extension will automatically install the first time you run an az arcgateway command. Learn more about extensions.

管理 Arc 電腦上的網關聯機。

命令

名稱 Description 類型 狀態
az arcgateway create

建立Arc閘道資源。

Extension GA
az arcgateway delete

刪除 Arc 閘道資源。

Extension GA
az arcgateway list

列出與特定訂用帳戶相關聯的所有Arc網關資源。

Extension GA
az arcgateway settings

管理 Azure Arc-Enabled 伺服器的設定。

Extension GA
az arcgateway settings update

更新目標資源的基底設定。

Extension GA
az arcgateway show

顯示特定Arc閘道資源的詳細數據。

Extension GA
az arcgateway wait

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

Extension GA

az arcgateway create

建立Arc閘道資源。

az arcgateway create --gateway-name --name
                     --resource-group
                     [--allowed-features]
                     [--gateway-type {Public}]
                     [--location]
                     [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                     [--tags]

範例

閘道建立的範例命令

az arcgateway create --name MyArcgateway --resource-group myResourceGroup --location eastus2euap --subscription mySubscription

必要參數

--gateway-name --name -n

閘道名稱。

--resource-group -g

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

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--allowed-features

指定為此閘道啟用的功能清單。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

屬性
Parameter group: Properties Arguments
預設值: ['*']
--gateway-type

閘道資源的型別。

屬性
Parameter group: Properties Arguments
接受的值: Public
--location -l

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

屬性
Parameter group: Parameters Arguments
--no-wait

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

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

Resource tags. 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

屬性
Parameter group: Parameters Arguments
全域參數
--debug

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

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

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

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

Output format.

屬性
預設值: 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 arcgateway delete

刪除 Arc 閘道資源。

az arcgateway delete [--gateway-name --name]
                     [--ids]
                     [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                     [--resource-group]
                     [--subscription]
                     [--yes]

範例

範例命令或閘道刪除

az arcgateway delete --name MyArcgateway --resource-group myResourceGroup --subscription mySubscription

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--gateway-name --name -n

閘道名稱。

屬性
Parameter group: Resource Id Arguments
--ids

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

屬性
Parameter group: Resource Id Arguments
--no-wait

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

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

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

屬性
Parameter group: Resource Id Arguments
--subscription

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

屬性
Parameter group: Resource Id Arguments
--yes -y

請勿提示確認。

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

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

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

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

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

Output format.

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

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

--verbose

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

屬性
預設值: False

az arcgateway list

列出與特定訂用帳戶相關聯的所有Arc網關資源。

az arcgateway list [--max-items]
                   [--next-token]
                   [--resource-group]

範例

範例命令或閘道清單

az arcgateway list --subscription mySubscription

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--max-items

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

屬性
Parameter group: Pagination Arguments
--next-token

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

屬性
Parameter group: Pagination Arguments
--resource-group -g

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

全域參數
--debug

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

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

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

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

Output format.

屬性
預設值: 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 arcgateway show

顯示特定Arc閘道資源的詳細數據。

az arcgateway show [--gateway-name --name]
                   [--ids]
                   [--resource-group]
                   [--subscription]

範例

閘道顯示的範例命令

az arcgateway show --name myArcgateway --resource-group myResourceGroup --subscription mySubscription

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--gateway-name --name -n

閘道名稱。

屬性
Parameter group: Resource Id Arguments
--ids

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

屬性
Parameter group: Resource Id Arguments
--resource-group -g

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

屬性
Parameter group: Resource Id Arguments
--subscription

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

屬性
Parameter group: Resource Id Arguments
全域參數
--debug

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

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

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

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

Output format.

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

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

--verbose

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

屬性
預設值: False

az arcgateway wait

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

az arcgateway wait [--created]
                   [--custom]
                   [--deleted]
                   [--exists]
                   [--gateway-name --name]
                   [--ids]
                   [--interval]
                   [--resource-group]
                   [--subscription]
                   [--timeout]
                   [--updated]

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--created

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

屬性
Parameter group: Wait Condition Arguments
預設值: False
--custom

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

屬性
Parameter group: Wait Condition Arguments
--deleted

等到刪除為止。

屬性
Parameter group: Wait Condition Arguments
預設值: False
--exists

等候資源存在。

屬性
Parameter group: Wait Condition Arguments
預設值: False
--gateway-name --name -n

閘道名稱。

屬性
Parameter group: Resource Id Arguments
--ids

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

屬性
Parameter group: Resource Id Arguments
--interval

輪詢間隔以秒為單位。

屬性
Parameter group: Wait Condition Arguments
預設值: 30
--resource-group -g

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

屬性
Parameter group: Resource Id Arguments
--subscription

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

屬性
Parameter group: Resource Id Arguments
--timeout

以秒為單位的等候上限。

屬性
Parameter group: Wait Condition Arguments
預設值: 3600
--updated

等到 provisioningState 更新為 'Succeeded'。

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

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

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

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

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

Output format.

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

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

--verbose

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

屬性
預設值: False