az network watcher connection-monitor endpoint

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

管理連線監視器的端點。

命令

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

將端點新增至連線監視器。

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

列出連線監視器中的所有端點。

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

從連線監視器移除端點。

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

顯示來自連線監視器的端點。

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

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

核心 預覽版

az network watcher connection-monitor endpoint add

預覽

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

將端點新增至連線監視器。

az network watcher connection-monitor endpoint add --connection-monitor
                                                   --endpoint-name
                                                   --location
                                                   [--address]
                                                   [--address-exclude]
                                                   [--address-include]
                                                   [--coverage-level {AboveAverage, Average, BelowAverage, Default, Full, Low}]
                                                   [--dest-test-groups]
                                                   [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                                   [--resource-id]
                                                   [--source-test-groups]
                                                   [--type {AzureArcVM, AzureSubnet, AzureVM, AzureVMSS, AzureVNet, ExternalAddress, MMAWorkspaceMachine, MMAWorkspaceNetwork}]

範例

將外部地址新增為目的地端點

az network watcher connection-monitor endpoint add --connection-monitor MyConnectionMonitor --location westus --name MyExternalEndpoint --address "bing.com" --dest-test-groups DefaultTestGroup --type ExternalAddress

將 Azure VM 新增為來源端點

az network watcher connection-monitor endpoint add --connection-monitor MyConnectionMonitor --location westus --name MyVMEndpoint --resource-id MyVMResourceID --source-test-groups DefaultTestGroup --type AzureVM

將子網新增為已排除位址的來源端點

az network watcher connection-monitor endpoint add --connection-monitor MyConnectionMonitor --location westus --name MySubnetEndpoint --resource-id MySubnetID --source-test-groups DefaultTestGroup --type AzureSubnet --address-exclude 10.0.0.25 10.0.0.30 --coverage-level BelowAverage

必要參數

--connection-monitor

連線ion 監視器名稱。

--endpoint-name --name -n

連接監視器端點的名稱。

--location -l

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

選擇性參數

--address

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

--address-exclude

必須排除至端點範圍的端點專案地址清單。 支援速記語法、json-file 和 yaml-file。 請嘗試 「??」 以顯示更多。

--address-include

需要包含至端點範圍的端點專案地址清單。 支援速記語法、json-file 和 yaml-file。 請嘗試 「??」 以顯示更多。

--coverage-level

端點的測試涵蓋範圍。 允許的值:AboveAverage、Average、BelowAverage、Default、Full、Low。

接受的值: AboveAverage, Average, BelowAverage, Default, Full, Low
--dest-test-groups

要參考為目的地的測試群組名稱以空格分隔的清單。 支援速記語法、json-file 和 yaml-file。 請嘗試 「??」 以顯示更多。

--no-wait

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

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

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

--source-test-groups

要作為來源參考之測試群組名稱的空間分隔清單。 支援速記語法、json-file 和 yaml-file。 請嘗試 「??」 以顯示更多。

--type

端點類型。 允許的值:AzureArcVM、AzureSubnet、AzureVM、AzureVMSS、AzureVNet、ExternalAddress、MMAWorkspaceMachine、MMAWorkspaceNetwork。

接受的值: AzureArcVM, AzureSubnet, AzureVM, AzureVMSS, AzureVNet, ExternalAddress, MMAWorkspaceMachine, MMAWorkspaceNetwork
全域參數
--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 endpoint list

預覽

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

列出連線監視器中的所有端點。

az network watcher connection-monitor endpoint list --connection-monitor
                                                    --location

範例

列出連線監視器中的所有端點。

az network watcher connection-monitor endpoint 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 endpoint remove

預覽

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

從連線監視器移除端點。

az network watcher connection-monitor endpoint remove --connection-monitor
                                                      --endpoint-name
                                                      --location
                                                      [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                                      [--test-groups]

範例

從連線監視器的所有測試群組中移除端點

az network watcher connection-monitor endpoint remove --connection-monitor MyConnectionMonitor --location westus --name MyEndpoint

從連線監視器的兩個測試群組移除端點

az network watcher connection-monitor endpoint remove --connection-monitor MyConnectionMonitor --location westus --name MyEndpoint --test-groups DefaultTestGroup HealthCheckTestGroup

必要參數

--connection-monitor

連線ion 監視器名稱。

--endpoint-name --name -n

連線監視端點的名稱。

--location -l

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

選擇性參數

--no-wait

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

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

測試組名的空間分隔清單,只有在指定時才會受到影響。 支援速記語法、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 network watcher connection-monitor endpoint show

預覽

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

顯示來自連線監視器的端點。

az network watcher connection-monitor endpoint show --connection-monitor
                                                    --endpoint-name
                                                    --location

範例

顯示來自連線監視器的端點。

az network watcher connection-monitor endpoint show --connection-monitor MyConnectionMonitor --location westus2 --name myconnectionmonitorendpoint --subscription MySubscription

必要參數

--connection-monitor

連線ion 監視器名稱。

--endpoint-name --name -n

連線監視端點的名稱。

--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 endpoint wait

預覽

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

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

az network watcher connection-monitor endpoint 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

監看員所屬的資源群組名稱。

全域參數
--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 來取得完整偵錯記錄。