Share via


az network network-watcher connection-monitor

Manage connection monitor.

Connection monitor provides unified, end-to-end connection monitoring in Network Watcher. The Connection monitor feature supports hybrid and Azure cloud deployments.

Commands

Name Description Type Status
az network network-watcher connection-monitor create

Create a connection monitor.

Core GA
az network network-watcher connection-monitor delete

Delete the specified connection monitor.

Core GA
az network network-watcher connection-monitor list

List all connection monitors for the specified Network Watcher.

Core GA
az network network-watcher connection-monitor show

Get a connection monitor by name.

Core GA
az network network-watcher connection-monitor wait

Place the CLI in a waiting state until a condition is met.

Core GA

az network network-watcher connection-monitor create

Experimental Preview Deprecated

Create a connection monitor.

az network network-watcher connection-monitor create --connection-monitor-name
                                                     --network-watcher-name
                                                     --resource-group
                                                     [--auto-start {0, 1, f, false, n, no, t, true, y, yes}]
                                                     [--endpoints]
                                                     [--location]
                                                     [--migrate]
                                                     [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                                     [--notes]
                                                     [--outputs]
                                                     [--tags]
                                                     [--test-configurations]
                                                     [--test-groups]

Examples

Create connection monitor

az network network-watcher connection-monitor create --name cm12 --network-watcher-name networkwatcher_eastus --resource-group networkwatcherrg --location eastus --endpoints "[{name:vmName,type:AzureVM,resourceId:/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Compute/virtualMachines/TESTVM-LINUX},{address:8.8.8.8,name:google,type:ExternalAddress}]" --test-configurations "[{name:TestConfiguration04,protocol:Tcp,successThreshold:{},tcpConfiguration:{disableTraceRoute:false,port:53},testFrequencySec:30}]" --test-groups "[{destinations:[google],disable:false,name:TestingGroup04,sources:[vmName],testConfigurations:[TestConfiguration04]}]"

Create Connection Monitor

az network network-watcher connection-monitor create --name cm12 --network-watcher-name networkwatcher_eastus --resource-group networkwatcherrg --location eastus --endpoints "[{name:vmName,type:AzureVM,resourceId:/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Compute/virtualMachines/TESTVM-LINUX},{address:8.8.8.8,name:google,type:ExternalAddress}]" --test-configurations "[{name:TestConfiguration04,protocol:Tcp,successThreshold:{},tcpConfiguration:{disableTraceRoute:false,port:53},testFrequencySec:30}]" --test-groups "[{destinations:[google],disable:false,name:TestingGroup04,sources:[vmName],testConfigurations:[TestConfiguration04]}]" --outputs "[{type:Workspace,workspaceSettings:{workspaceResourceId:/subscriptions/subid/resourceGroups/DefaultResourceGroup-EUS/providers/Microsoft.OperationalInsights/workspaces/DefaultWorkspace-sub-id-region}}]"

Required Parameters

--connection-monitor-name --name -n
Experimental Preview Deprecated

The name of the connection monitor.

--network-watcher-name
Experimental Preview Deprecated

The name of the Network Watcher resource.

--resource-group -g
Experimental Preview Deprecated

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--auto-start
Experimental Preview Deprecated

Determines if the connection monitor will start automatically once created.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--endpoints
Experimental Preview Deprecated

List of connection monitor endpoints. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--location
Experimental Preview Deprecated

Connection monitor location.

--migrate
Experimental Preview Deprecated

Value indicating whether connection monitor V1 should be migrated to V2 format.

--no-wait
Experimental Preview Deprecated

Do not wait for the long-running operation to finish.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--notes
Experimental Preview Deprecated

Optional notes to be associated with the connection monitor.

--outputs
Experimental Preview Deprecated

List of connection monitor outputs. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--tags
Experimental Preview Deprecated

Connection monitor tags. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--test-configurations
Experimental Preview Deprecated

List of connection monitor test configurations. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--test-groups
Experimental Preview Deprecated

List of connection monitor test groups. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

Global Parameters
--debug
Experimental Preview Deprecated

Increase logging verbosity to show all debug logs.

--help -h
Experimental Preview Deprecated

Show this help message and exit.

--only-show-errors
Experimental Preview Deprecated

Only show errors, suppressing warnings.

--output -o
Experimental Preview Deprecated

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query
Experimental Preview Deprecated

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription
Experimental Preview Deprecated

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

--verbose
Experimental Preview Deprecated

Increase logging verbosity. Use --debug for full debug logs.

az network network-watcher connection-monitor delete

Experimental Preview Deprecated

Delete the specified connection monitor.

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

Examples

Required Parameters

Optional Parameters

--connection-monitor-name --name -n
Experimental Preview Deprecated

The name of the connection monitor.

--ids
Experimental Preview Deprecated

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--network-watcher-name
Experimental Preview Deprecated

The name of the Network Watcher resource.

--no-wait
Experimental Preview Deprecated

Do not wait for the long-running operation to finish.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--resource-group -g
Experimental Preview Deprecated

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription
Experimental Preview Deprecated

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

--yes -y
Experimental Preview Deprecated

Do not prompt for confirmation.

Default value: False
Global Parameters
--debug
Experimental Preview Deprecated

Increase logging verbosity to show all debug logs.

--help -h
Experimental Preview Deprecated

Show this help message and exit.

--only-show-errors
Experimental Preview Deprecated

Only show errors, suppressing warnings.

--output -o
Experimental Preview Deprecated

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query
Experimental Preview Deprecated

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription
Experimental Preview Deprecated

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

--verbose
Experimental Preview Deprecated

Increase logging verbosity. Use --debug for full debug logs.

az network network-watcher connection-monitor list

Experimental Preview Deprecated

List all connection monitors for the specified Network Watcher.

az network network-watcher connection-monitor list --network-watcher-name
                                                   --resource-group

Examples

Required Parameters

--network-watcher-name
Experimental Preview Deprecated

The name of the Network Watcher resource.

--resource-group -g
Experimental Preview Deprecated

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

Global Parameters
--debug
Experimental Preview Deprecated

Increase logging verbosity to show all debug logs.

--help -h
Experimental Preview Deprecated

Show this help message and exit.

--only-show-errors
Experimental Preview Deprecated

Only show errors, suppressing warnings.

--output -o
Experimental Preview Deprecated

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query
Experimental Preview Deprecated

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription
Experimental Preview Deprecated

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

--verbose
Experimental Preview Deprecated

Increase logging verbosity. Use --debug for full debug logs.

az network network-watcher connection-monitor show

Experimental Preview Deprecated

Get a connection monitor by name.

az network network-watcher connection-monitor show [--connection-monitor-name]
                                                   [--ids]
                                                   [--network-watcher-name]
                                                   [--resource-group]
                                                   [--subscription]

Examples

Required Parameters

Optional Parameters

--connection-monitor-name --name -n
Experimental Preview Deprecated

The name of the connection monitor.

--ids
Experimental Preview Deprecated

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--network-watcher-name
Experimental Preview Deprecated

The name of the Network Watcher resource.

--resource-group -g
Experimental Preview Deprecated

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription
Experimental Preview Deprecated

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

Global Parameters
--debug
Experimental Preview Deprecated

Increase logging verbosity to show all debug logs.

--help -h
Experimental Preview Deprecated

Show this help message and exit.

--only-show-errors
Experimental Preview Deprecated

Only show errors, suppressing warnings.

--output -o
Experimental Preview Deprecated

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query
Experimental Preview Deprecated

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription
Experimental Preview Deprecated

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

--verbose
Experimental Preview Deprecated

Increase logging verbosity. Use --debug for full debug logs.

az network network-watcher connection-monitor wait

Experimental Preview Deprecated

Place the CLI in a waiting state until a condition is met.

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

Examples

Required Parameters

Optional Parameters

--connection-monitor-name --name -n
Experimental Preview Deprecated

The name of the connection monitor.

--created
Experimental Preview Deprecated

Wait until created with 'provisioningState' at 'Succeeded'.

Default value: False
--custom
Experimental Preview Deprecated

Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

--deleted
Experimental Preview Deprecated

Wait until deleted.

Default value: False
--exists
Experimental Preview Deprecated

Wait until the resource exists.

Default value: False
--ids
Experimental Preview Deprecated

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--interval
Experimental Preview Deprecated

Polling interval in seconds.

Default value: 30
--network-watcher-name
Experimental Preview Deprecated

The name of the Network Watcher resource.

--resource-group -g
Experimental Preview Deprecated

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription
Experimental Preview Deprecated

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

--timeout
Experimental Preview Deprecated

Maximum wait in seconds.

Default value: 3600
--updated
Experimental Preview Deprecated

Wait until updated with provisioningState at 'Succeeded'.

Default value: False
Global Parameters
--debug
Experimental Preview Deprecated

Increase logging verbosity to show all debug logs.

--help -h
Experimental Preview Deprecated

Show this help message and exit.

--only-show-errors
Experimental Preview Deprecated

Only show errors, suppressing warnings.

--output -o
Experimental Preview Deprecated

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query
Experimental Preview Deprecated

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription
Experimental Preview Deprecated

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

--verbose
Experimental Preview Deprecated

Increase logging verbosity. Use --debug for full debug logs.