az network watcher connection-monitor endpoint

Manage endpoint of a connection monitor.

Commands

az network watcher connection-monitor endpoint add

Add an endpoint to a connection monitor.

az network watcher connection-monitor endpoint list

List all endpoints form a connection monitor.

az network watcher connection-monitor endpoint remove

Remove an endpoint from a connection monitor.

az network watcher connection-monitor endpoint show

Show an endpoint from a connection monitor.

az network watcher connection-monitor endpoint add

Add an endpoint to a connection monitor.

az network watcher connection-monitor endpoint add --connection-monitor
                                                   --location
                                                   --name
                                                   [--address]
                                                   [--address-exclude]
                                                   [--address-include]
                                                   [--coverage-level {AboveAverage, Average, BelowAverage, Default, Full, Low}]
                                                   [--dest-test-groups]
                                                   [--filter-item]
                                                   [--filter-type {Include}]
                                                   [--resource-id]
                                                   [--source-test-groups]
                                                   [--subscription]
                                                   [--type {AzureSubnet, AzureVM, AzureVNet, ExternalAddress, MMAWorkspaceMachine, MMAWorkspaceNetwork}]

Examples

Add an external address as a destination endpoint

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

Add an Azure VM as a source endpoint

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

Add a Subnet as a source endpoint with addresses excluded

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

Required Parameters

--connection-monitor

Connection monitor name.

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--name -n

The name of the connection monitor endpoint.

Optional Parameters

--address

Address of the connection monitor endpoint (IP or domain name).

--address-exclude

List of address of the endpoint item which needs to be included to the endpoint scope.

--address-include

List of address of the endpoint item which needs to be included to the endpoint scope.

--coverage-level

Test coverage for the endpoint.

accepted values: AboveAverage, Average, BelowAverage, Default, Full, Low
--dest-test-groups

Space-separated list of names for test group to reference as destination.

--filter-item

List of property=value pairs to define filter items. Property currently include: type, address. Property value of type supports 'AgentAddress' only now.

--filter-type

The behavior of the endpoint filter. Currently only 'Include' is supported.

accepted values: Include
--resource-id

Resource ID of the connection monitor endpoint.

--source-test-groups

Space-separated list of names for test group to reference as source.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--type

The endpoint type.

accepted values: AzureSubnet, AzureVM, AzureVNet, ExternalAddress, MMAWorkspaceMachine, MMAWorkspaceNetwork

az network watcher connection-monitor endpoint list

List all endpoints form a connection monitor.

az network watcher connection-monitor endpoint list --connection-monitor
                                                    --location
                                                    [--query-examples]
                                                    [--subscription]

Required Parameters

--connection-monitor

Connection monitor name.

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az network watcher connection-monitor endpoint remove

Remove an endpoint from a connection monitor.

az network watcher connection-monitor endpoint remove --connection-monitor
                                                      --location
                                                      --name
                                                      [--subscription]
                                                      [--test-groups]

Examples

Remove endpoint from all test groups of a connection monitor

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

Remove endpoint from two test groups of a connection monitor

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

Required Parameters

--connection-monitor

Connection monitor name.

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--name -n

The name of the connection monitor endpoint.

Optional Parameters

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--test-groups

Space-separated list of names of test group which only need to be affected if specified.

az network watcher connection-monitor endpoint show

Show an endpoint from a connection monitor.

az network watcher connection-monitor endpoint show --connection-monitor
                                                    --location
                                                    --name
                                                    [--query-examples]
                                                    [--subscription]

Required Parameters

--connection-monitor

Connection monitor name.

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--name -n

The name of the connection monitor endpoint.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.