Skip to content

Commit 0f20c6d

Browse files
authored
Merge pull request #219276 from v-ksreedevan/22Nov-TroubleshootPSLegacy
Content Freshness - Troubleshoot
2 parents cd2211e + 6e91288 commit 0f20c6d

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

articles/network-watcher/network-watcher-troubleshoot-manage-powershell.md

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@ title: Troubleshoot Azure VNet gateway and connections - Azure PowerShell
33
titleSuffix: Azure Network Watcher
44
description: This page explains how to use the Azure Network Watcher troubleshoot PowerShell cmdlet
55
services: network-watcher
6-
documentationcenter: na
7-
author: damendo
6+
author: shijaiswal
87
ms.service: network-watcher
98
ms.topic: troubleshooting
10-
ms.tgt_pltfrm: na
119
ms.workload: infrastructure-services
12-
ms.date: 01/07/2021
13-
ms.author: damendo
14-
ms.custom: devx-track-azurepowershell
10+
ms.date: 11/22/2022
11+
ms.author: shijaiswal
12+
ms.custom: devx-track-azurepowershell, engagement-fy23
1513
---
1614

1715
# Troubleshoot Virtual Network Gateway and Connections using Azure Network Watcher PowerShell
@@ -22,20 +20,19 @@ ms.custom: devx-track-azurepowershell
2220
> - [Azure CLI](network-watcher-troubleshoot-manage-cli.md)
2321
> - [REST API](network-watcher-troubleshoot-manage-rest.md)
2422
25-
Network Watcher provides many capabilities as it relates to understanding your network resources in Azure. One of these capabilities is resource troubleshooting. Resource troubleshooting can be called through the portal, PowerShell, CLI, or REST API. When called, Network Watcher inspects the health of a Virtual Network Gateway or a Connection and returns its findings.
23+
Network Watcher provides various capabilities as it relates to understanding your network resources in Azure. One of these capabilities is resource troubleshooting. Resource troubleshooting can be called through the Azure portal, PowerShell, CLI, or REST API. When called, Network Watcher inspects the health of a Virtual Network Gateway or a Connection and returns its findings.
2624

2725

2826
[!INCLUDE [updated-for-az](../../includes/updated-for-az.md)]
2927

30-
## Before you begin
28+
## Prerequisites
3129

32-
This scenario assumes you have already followed the steps in [Create a Network Watcher](network-watcher-create.md) to create a Network Watcher.
33-
34-
For a list of supported gateway types visit, [Supported Gateway types](network-watcher-troubleshoot-overview.md#supported-gateway-types).
30+
- A [Network Watcher instance](network-watcher-create.md).
31+
- Ensure you're using a supported Gateway type. [Learn more](network-watcher-troubleshoot-overview.md#supported-gateway-types).
3532

3633
## Overview
3734

38-
Resource troubleshooting provides the ability troubleshoot issues that arise with Virtual Network Gateways and Connections. When a request is made to resource troubleshooting, logs are being queried and inspected. When inspection is complete, the results are returned. Resource troubleshooting requests are long running requests, which could take multiple minutes to return a result. The logs from troubleshooting are stored in a container on a storage account that is specified.
35+
Resource troubleshooting provides the ability to troubleshoot issues that arise with Virtual Network Gateways and Connections. When a request is made to resource troubleshooting, logs are being queried and inspected. When inspection is complete, the results are returned. Resource troubleshooting requests are long running requests, which could take multiple minutes to return a result. The logs from troubleshooting are stored in a container on a storage account that is specified.
3936

4037
## Retrieve Network Watcher
4138

@@ -65,23 +62,28 @@ $sc = New-AzStorageContainer -Name logs
6562

6663
## Run Network Watcher resource troubleshooting
6764

68-
You troubleshoot resources with the `Start-AzNetworkWatcherResourceTroubleshooting` cmdlet. We pass the cmdlet the Network Watcher object, the Id of the Connection or Virtual Network Gateway, the storage account id, and the path to store the results.
65+
You can troubleshoot resources with the [Start-AzNetworkWatcherResourceTroubleshooting](/powershell/module/az.network/start-aznetworkwatcherresourcetroubleshooting) cmdlet. We pass the cmdlet the Network Watcher object, the ID of the Connection or Virtual Network Gateway, the storage account ID, and the path to store the results.
6966

7067
> [!NOTE]
71-
> The `Start-AzNetworkWatcherResourceTroubleshooting` cmdlet is long running and may take a few minutes to complete.
68+
> The [Start-AzNetworkWatcherResourceTroubleshooting](/powershell/module/az.network/start-aznetworkwatcherresourcetroubleshooting) cmdlet is long running and may take a few minutes to complete.
7269
7370
```powershell
7471
Start-AzNetworkWatcherResourceTroubleshooting -NetworkWatcher $networkWatcher -TargetResourceId $connection.Id -StorageId $sa.Id -StoragePath "$($sa.PrimaryEndpoints.Blob)$($sc.name)"
7572
```
7673

77-
Once you run the cmdlet, Network Watcher reviews the resource to verify the health. It returns the results to the shell and stores logs of the results in the storage account specified.
74+
Once you run the cmdlet, Network Watcher reviews the resource to verify its health. It returns the results to the shell and stores logs of the results in the storage account specified.
7875

7976
## Understanding the results
8077

81-
The action text provides general guidance on how to resolve the issue. If an action can be taken for the issue, a link is provided with additional guidance. In the case where there is no additional guidance, the response provides the url to open a support case. For more information about the properties of the response and what is included, visit [Network Watcher Troubleshoot overview](network-watcher-troubleshoot-overview.md)
78+
The action text provides general guidance on how to resolve the issue.
79+
80+
- If an action can be taken for the issue, a link is provided with additional guidance.
81+
- If there's no guidance provided, the response provides the URL to open a support case.
82+
83+
For more information about the properties of the response and what is included, see [Network Watcher Troubleshoot overview](network-watcher-troubleshoot-overview.md).
8284

83-
For instructions on downloading files from azure storage accounts, refer to [Get started with Azure Blob storage using .NET](../storage/blobs/storage-quickstart-blobs-dotnet.md). Another tool that can be used is Storage Explorer. More information about Storage Explorer can be found here at the following link: [Storage Explorer](https://storageexplorer.com/)
85+
For instructions on downloading files from Azure storage accounts, refer to [Get started with Azure Blob storage using .NET](../storage/blobs/storage-quickstart-blobs-dotnet.md). Another tool that can be used is Storage Explorer. For more information, see [Storage Explorer](https://storageexplorer.com/).
8486

8587
## Next steps
8688

87-
If settings have been changed that stop VPN connectivity, see [Manage Network Security Groups](../virtual-network/manage-network-security-group.md) to track down the network security group and security rules that may be in question.
89+
If VPN connectivity has been stopped due to a change in settings, see [Manage Network Security Groups](../virtual-network/manage-network-security-group.md) to track down the network security group and security rules that may be in question.

0 commit comments

Comments
 (0)