Skip to content

Commit e97900e

Browse files
updated Network Watcher cmdlet
1 parent c8d9559 commit e97900e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Resource troubleshooting provides the ability troubleshoot issues that arise wit
4242
The first step is to retrieve the Network Watcher instance. The `$networkWatcher` variable is passed to the `Start-AzNetworkWatcherResourceTroubleshooting` cmdlet in step 4.
4343

4444
```powershell
45-
$networkWatcher = Get-AzResource | Where {$_.ResourceType -eq "Microsoft.Network/networkWatchers" -and $_.Location -eq "WestCentralUS" }
45+
$networkWatcher = Get-AzNetworkWatcher -Location "WestCentralUS"
4646
```
4747

4848
## Retrieve a Virtual Network Gateway Connection

0 commit comments

Comments
 (0)