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
Name or ID of the resource to troubleshoot.
Optional Parameters
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The resource type.
Name of the resource group the watcher is in.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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
Name or ID of the resource to troubleshoot.
Name or ID of the storage account in which to store the troubleshooting results.
Fully qualified URI to the storage blob container in which to store the troubleshooting results.
Optional Parameters
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The type of target resource to troubleshoot, if resource ID is not specified.
Name of the resource group the watcher is in.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Azure CLI