az network watcher troubleshooting
管理网络观察程序故障排除会话。
有关配置故障排除的详细信息,请访问 https://free.blessedness.top/azure/network-watcher/network-watcher-troubleshoot-manage-cli。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az network watcher troubleshooting show |
获取上次故障排除操作的结果。 |
Core | GA |
| az network watcher troubleshooting start |
排查 VPN 连接或网关连接问题。 |
Core | GA |
az network watcher troubleshooting show
获取上次故障排除操作的结果。
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]
示例
显示 Vnet 网关的故障排除操作的结果或状态。
az network watcher troubleshooting show -g MyResourceGroup --resource MyVnetGateway --resource-type vnetGateway
必需参数
要排除故障的资源的名称或 ID。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
资源类型。
| 属性 | 值 |
|---|---|
| 接受的值: | vnetGateway, vpnConnection |
观察程序在其中的资源组的名称。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az network watcher troubleshooting start
排查 VPN 连接或网关连接问题。
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]
示例
在 VPN 连接上启动故障排除操作。
az network watcher troubleshooting start -g MyResourceGroup --resource MyVPNConnection --resource-type vpnConnection --storage-account MyStorageAccount --storage-path https://{storageAccountName}.blob.core.windows.net/{containerName}
必需参数
要排除故障的资源的名称或 ID。
存储故障排除结果的存储帐户的名称或 ID。
存储故障排除结果的存储 Blob 容器的完全限定 URI。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
如果未指定资源 ID,则要进行故障排除的目标资源的类型。
| 属性 | 值 |
|---|---|
| 接受的值: | vnetGateway, vpnConnection |
观察程序在其中的资源组的名称。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |