az network watcher connection-monitor test-group

此命令群組處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

管理連線監視器的測試群組。

命令

名稱 Description 類型 狀態
az network watcher connection-monitor test-group add

將測試群組以及新增/現有的端點和測試組態新增至連線監視器。

核心 預覽版
az network watcher connection-monitor test-group list

列出連線監視器的所有測試群組。

核心 預覽版
az network watcher connection-monitor test-group remove

從連線監視器移除測試群組。

核心 預覽版
az network watcher connection-monitor test-group show

顯示連線監視器的測試群組。

核心 預覽版
az network watcher connection-monitor test-group wait

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

核心 預覽版

az network watcher connection-monitor test-group add

預覽

命令群組 'network watcher connection-monitor test-group' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

將測試群組以及新增/現有的端點和測試組態新增至連線監視器。

az network watcher connection-monitor test-group add --connection-monitor
                                                     --endpoint-dest-name
                                                     --endpoint-source-name
                                                     --location
                                                     --name
                                                     --test-config-name
                                                     [--disable {0, 1, f, false, n, no, t, true, y, yes}]
                                                     [--endpoint-dest-address]
                                                     [--endpoint-dest-resource-id]
                                                     [--endpoint-source-address]
                                                     [--endpoint-source-resource-id]
                                                     [--frequency]
                                                     [--http-method {Get, Post}]
                                                     [--http-path]
                                                     [--http-port]
                                                     [--http-valid-status-codes]
                                                     [--https-prefer {0, 1, f, false, n, no, t, true, y, yes}]
                                                     [--icmp-disable-trace-route {0, 1, f, false, n, no, t, true, y, yes}]
                                                     [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                                     [--preferred-ip-version {IPv4, IPv6}]
                                                     [--protocol {Http, Icmp, Tcp}]
                                                     [--tcp-disable-trace-route {0, 1, f, false, n, no, t, true, y, yes}]
                                                     [--tcp-port]
                                                     [--threshold-failed-percent]
                                                     [--threshold-round-trip-time]

範例

透過其名稱新增測試群組以及現有的端點和測試組態

az network watcher connection-monitor test-group add --connection-monitor MyConnectionMonitor --location westus --name MyHTTPTestGroup --endpoint-source-name MySourceEndpoint --endpoint-dest-name MyDestinationEndpoint --test-config-name MyTestConfiguration

使用新增的來源端點和現有的測試組名新增測試群組 long

az network watcher connection-monitor test-group add --connection-monitor MyConnectionMonitor --location westus --name MyAccessibilityTestGroup --endpoint-source-name MySourceEndpoint --endpoint-source-resource-id MyLogAnalysisWorkspaceID --endpoint-dest-name MyExistingDestinationEndpoint --test-config-name MyExistingTestConfiguration

新增測試群組以及新增的端點和測試組態

az network watcher connection-monitor test-group add --connection-monitor MyConnectionMonitor --location westus --name MyAccessibilityTestGroup --endpoint-source-name MySourceEndpoint --endpoint-source-resource-id MyVMResourceID --endpoint-dest-name bing --endpoint-dest-address bing.com --test-config-name MyNewTestConfiguration --protocol Tcp --tcp-port 4096

必要參數

--connection-monitor

連線ion 監視器名稱。

--endpoint-dest-name

連線監視端點的目的地名稱。 如果您要建立 V2 連線監視器,則需要它。

--endpoint-source-name

連線監視端點的來源名稱。 如果您要建立 V2 連線監視器,則需要它。

--location -l

位置。​​ 來自的值: az account list-locations 。 您可以使用 來設定預設位置 az configure --defaults location=<location>

--name --test-group-name -n

連接監視器測試群組的名稱。

--test-config-name

連線監視器測試組態的名稱。 如果您要建立 V2 連線監視器,則需要它。

選擇性參數

--disable

值,指出測試群組是否停用。 false 為預設值。 允許的值:false、true。

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

連線監視端點的目的地位址(IP 或功能變數名稱)。

--endpoint-dest-resource-id

連線監視端點目的地的資源識別碼。

--endpoint-source-address

連線監視端點來源的位址(IP 或功能變數名稱)。

--endpoint-source-resource-id

連線監視端點來源的資源識別碼。 如果端點要當做來源使用,則需要此選項。

--frequency

測試評估的頻率,以秒為單位。 預設值:60。

--http-method

要使用的 HTTP 方法。

接受的值: Get, Post
--http-path

URI 的路徑元件。 例如,「/dir1/dir2」。

--http-port

要連接的埠。

--http-valid-status-codes

要考慮成功之 HTTP 狀態碼的空間分隔清單。 例如,'2xx 301-304 418' 支援速記語法、json-file 和 yaml-file。 請嘗試 「??」 以顯示更多。

--https-prefer

值,指出在選擇不明確的情況下,是否偏好使用 HTTPS。 允許的值:false、true。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--icmp-disable-trace-route

值,指出是否應該停用追蹤路由的路徑評估。 false 為預設值。 允許的值:false、true。

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

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

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

測試評估中使用的慣用 IP 版本。 連線監視器可能會根據其他參數選擇使用不同的版本。

接受的值: IPv4, IPv6
--protocol

測試評估中使用的通訊協定。

接受的值: Http, Icmp, Tcp
--tcp-disable-trace-route

值,指出是否應該停用追蹤路由的路徑評估。 false 為預設值。 允許的值:false、true。

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

要連接的埠。

--threshold-failed-percent

允許測試評估為成功的失敗檢查百分比上限。

--threshold-round-trip-time

允許測試評估為成功的毫秒數來回時間上限。

全域參數
--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 network watcher connection-monitor test-group list

預覽

命令群組 'network watcher connection-monitor test-group' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

列出連線監視器的所有測試群組。

az network watcher connection-monitor test-group list --connection-monitor
                                                      --location

範例

列出連線監視器的所有測試群組。

az network watcher connection-monitor test-group list --connection-monitor MyConnectionMonitor --location westus2

必要參數

--connection-monitor

連線ion 監視器名稱。

--location -l

位置。​​ 來自的值: az account list-locations 。 您可以使用 來設定預設位置 az configure --defaults location=<location>

全域參數
--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 network watcher connection-monitor test-group remove

預覽

命令群組 'network watcher connection-monitor test-group' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

從連線監視器移除測試群組。

az network watcher connection-monitor test-group remove --connection-monitor
                                                        --location
                                                        --name

範例

從連線監視器移除測試群組。

az network watcher connection-monitor test-group remove --connection-monitor MyConnectionMonitor --location westus2 --name MyConnectionMonitorTestGroup

必要參數

--connection-monitor

連線ion 監視器名稱。

--location -l

位置。​​ 來自的值: az account list-locations 。 您可以使用 來設定預設位置 az configure --defaults location=<location>

--name -n

連接監視器測試群組的名稱。

全域參數
--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 network watcher connection-monitor test-group show

預覽

命令群組 'network watcher connection-monitor test-group' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

顯示連線監視器的測試群組。

az network watcher connection-monitor test-group show --connection-monitor
                                                      --location
                                                      --name

範例

顯示連線監視器的測試群組。

az network watcher connection-monitor test-group show --connection-monitor MyConnectionMonitor --location westus2 --name MyConnectionMonitorTestGroup --subscription MySubscription

必要參數

--connection-monitor

連線ion 監視器名稱。

--location -l

位置。​​ 來自的值: az account list-locations 。 您可以使用 來設定預設位置 az configure --defaults location=<location>

--name --test-group-name -n

連接監視器測試群組的名稱。

全域參數
--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 network watcher connection-monitor test-group wait

預覽

命令群組 'network watcher connection-monitor test-group' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

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

az network watcher connection-monitor test-group wait [--connection-monitor]
                                                      [--created]
                                                      [--custom]
                                                      [--deleted]
                                                      [--exists]
                                                      [--ids]
                                                      [--interval]
                                                      [--subscription]
                                                      [--timeout]
                                                      [--updated]
                                                      [--watcher-name]
                                                      [--watcher-rg]

選擇性參數

--connection-monitor

連線ion 監視器名稱。

--created

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

預設值: False
--custom

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

--deleted

等到刪除為止。

預設值: False
--exists

等候資源存在。

預設值: False
--ids

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

--interval

輪詢間隔以秒為單位。

預設值: 30
--subscription

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

--timeout

以秒為單位的等候上限。

預設值: 3600
--updated

等到 provisioningState 更新為 'Succeeded'。

預設值: False
--watcher-name

網路監看員資源的名稱。

--watcher-rg -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 來取得完整偵錯記錄。