Network Watchers - Get Troubleshooting
Initiate troubleshooting on a specified resource.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/troubleshoot?api-version=2024-03-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
network
|
path | True |
string |
The name of the network watcher resource. |
resource
|
path | True |
string |
The name of the resource group. |
subscription
|
path | True |
string |
The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
api-version
|
query | True |
string |
Client API version. |
Request Body
Name | Required | Type | Description |
---|---|---|---|
properties.storageId | True |
string |
The ID for the storage account to save the troubleshoot result. |
properties.storagePath | True |
string |
The path to the blob to save the troubleshoot result in. |
targetResourceId | True |
string |
The target resource to troubleshoot. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Successful troubleshooting request. |
|
202 Accepted |
Accepted get troubleshooting request. |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Get troubleshooting
Sample request
POST https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/troubleshoot?api-version=2024-03-01
{
"targetResourceId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1",
"properties": {
"storageId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/st1",
"storagePath": "https://st1.blob.core.windows.net/cn1"
}
}
Sample response
{
"startTime": "2017-01-12T00:19:47.0442834Z",
"endTime": "2017-01-12T00:20:09.914Z",
"code": "UnHealthy",
"results": [
{
"id": "000000",
"reasonType": "VipUnResponsive",
"summary": "We are sorry, your VPN gateway is unreachable from the Internet",
"detail": "During this time S2S VPN tunnels to on premises sites or other Azure virtual networks will be disconnected",
"recommendedActions": [
{
"actionText": "Verify if there is a network security group (NSG) applied to the GatewaySubnet",
"actionUri": "https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-create-nsg-arm-pportal",
"actionUriText": "Verify"
},
{
"actionText": "If your VPN gateway isn't up and running by the expected resolution time, contact support",
"actionUri": "http://azure.microsoft.com/support",
"actionUriText": "contact support"
}
]
}
]
}
Location: https:/management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/troubleshoot?api-version=2024-03-01
{
"startTime": "2017-01-12T00:19:47.0442834Z",
"endTime": "2017-01-12T00:20:09.914Z",
"code": "UnHealthy",
"results": [
{
"id": "000000",
"reasonType": "VipUnResponsive",
"summary": "We are sorry, your VPN gateway is unreachable from the Internet",
"detail": "During this time S2S VPN tunnels to on premises sites or other Azure virtual networks will be disconnected",
"recommendedActions": [
{
"actionText": "Verify if there is a network security group (NSG) applied to the GatewaySubnet",
"actionUri": "https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-create-nsg-arm-pportal",
"actionUriText": "Verify"
},
{
"actionText": "If your VPN gateway isn't up and running by the expected resolution time, contact support",
"actionUri": "http://azure.microsoft.com/support",
"actionUriText": "contact support"
}
]
}
]
}
Definitions
Name | Description |
---|---|
Error |
Common error details representation. |
Error |
The error object. |
Troubleshooting |
Information gained from troubleshooting of specified resource. |
Troubleshooting |
Parameters that define the resource to troubleshoot. |
Troubleshooting |
Recommended actions based on discovered issues. |
Troubleshooting |
Troubleshooting information gained from specified resource. |
ErrorDetails
Common error details representation.
Name | Type | Description |
---|---|---|
code |
string |
Error code. |
message |
string |
Error message. |
target |
string |
Error target. |
ErrorResponse
The error object.
Name | Type | Description |
---|---|---|
error |
Error |
TroubleshootingDetails
Information gained from troubleshooting of specified resource.
Name | Type | Description |
---|---|---|
detail |
string |
Details on troubleshooting results. |
id |
string |
The id of the get troubleshoot operation. |
reasonType |
string |
Reason type of failure. |
recommendedActions |
List of recommended actions. |
|
summary |
string |
A summary of troubleshooting. |
TroubleshootingParameters
Parameters that define the resource to troubleshoot.
Name | Type | Description |
---|---|---|
properties.storageId |
string |
The ID for the storage account to save the troubleshoot result. |
properties.storagePath |
string |
The path to the blob to save the troubleshoot result in. |
targetResourceId |
string |
The target resource to troubleshoot. |
TroubleshootingRecommendedActions
Recommended actions based on discovered issues.
Name | Type | Description |
---|---|---|
actionId |
string |
ID of the recommended action. |
actionText |
string |
Description of recommended actions. |
actionUri |
string |
The uri linking to a documentation for the recommended troubleshooting actions. |
actionUriText |
string |
The information from the URI for the recommended troubleshooting actions. |
TroubleshootingResult
Troubleshooting information gained from specified resource.
Name | Type | Description |
---|---|---|
code |
string |
The result code of the troubleshooting. |
endTime |
string |
The end time of the troubleshooting. |
results |
Information from troubleshooting. |
|
startTime |
string |
The start time of the troubleshooting. |