Del via


az network watcher troubleshooting

Manage Network Watcher troubleshooting sessions.

For more information on configuring troubleshooting visit https://docs.microsoft.com/azure/network-watcher/network-watcher-troubleshoot-manage-cli.

Commands

Name Description Type Status
az network watcher troubleshooting show

Get the results of the last troubleshooting operation.

Core GA
az network watcher troubleshooting start

Troubleshoot issues with VPN connections or gateway connectivity.

Core GA

az network watcher troubleshooting show

Get the results of the last troubleshooting operation.

az network watcher troubleshooting show --resource
                                        [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                        [--resource-group]
                                        [--resource-type {vnetGateway, vpnConnection}]
                                        [--watcher-rg]

Examples

Show the results or status of a troubleshooting operation for a Vnet Gateway.

az network watcher troubleshooting show -g MyResourceGroup --resource MyVnetGateway --resource-type vnetGateway

Required Parameters

--resource

Name or ID of the resource to troubleshoot.

Optional Parameters

--no-wait

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

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

--resource-type -t

The resource type.

Accepted values: vnetGateway, vpnConnection
--watcher-rg

Name of the resource group the watcher is in.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

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

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

--subscription

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

--verbose

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

az network watcher troubleshooting start

Troubleshoot issues with VPN connections or gateway connectivity.

az network watcher troubleshooting start --resource
                                         --storage-account
                                         --storage-path
                                         [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                         [--resource-group]
                                         [--resource-type {vnetGateway, vpnConnection}]
                                         [--watcher-rg]

Examples

Start a troubleshooting operation on a VPN Connection.

az network watcher troubleshooting start -g MyResourceGroup --resource MyVPNConnection --resource-type vpnConnection --storage-account MyStorageAccount --storage-path https://{storageAccountName}.blob.core.windows.net/{containerName}

Required Parameters

--resource

Name or ID of the resource to troubleshoot.

--storage-account

Name or ID of the storage account in which to store the troubleshooting results.

--storage-path

Fully qualified URI to the storage blob container in which to store the troubleshooting results.

Optional Parameters

--no-wait

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

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

--resource-type -t

The type of target resource to troubleshoot, if resource ID is not specified.

Accepted values: vnetGateway, vpnConnection
--watcher-rg

Name of the resource group the watcher is in.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

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

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

--subscription

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

--verbose

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