Skip to content

Commit b6ff614

Browse files
authored
Merge pull request #106724 from TravisCragg-MSFT/patch-69
updated Network Watcher cmdlet
2 parents c485828 + e97900e commit b6ff614

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)