How — and why — to disable Network Watcher using PowerShell

It happened to me a couple of times already. When you are working with the Network Watcher feature (spoiler alert, new article coming up on this soon), there is one option at the subscription level only (let me get that clear for you --  one option ONLY) to enable monitoring on all-region, but nothing to roll back. If you want to disable Network Watcher using the Azure Portal, you have to expand your subscription and click on each region that you don’t want to monitor and then Disable network watcher, which will give a refresh and collapse the list containing all regions of the subscription.

Let’s say you have two regions to monitor, and you made that mistake. You would spend at least 30 minutes complaining and another 30 minutes to perform the tasks. No worries:  PowerShell and the Get-AZNetworkWatcher command to the rescue!

We can run the following cmdlet to list all regions that are being monitored and the second cmdlet to remove all regions and switch back to Disable Network Watcher.

Get-AZNetworkWatcher | Select Name,Location,ProvisioningState
Get-AZNetworkWatcher | Remove-AZNetworkWatcher

After executing the above cmdlet, the result will be the feature showing as disabled in the Azure Portal. Time to expand your subscription and pick the region that you want to monitor.

Featured image: Pixabay

Anderson Patricio

Anderson Patricio is a Canadian MVP in Cloud and Datacenter Management, and Office Server and Services, besides of the Microsoft Award he also holds a Solutions Master (MCSM) in Exchange, CISSP and several other certifications. Anderson contributes to the Microsoft Community with articles, tutorials, blog posts, twitter, forums and book reviews. He is a regular contributor here at,, and Anderson (Portuguese).

Published by
Anderson Patricio

Recent Posts

Software-defined perimeter solutions: Why this is the future of security

Traditional VPNs are showing their age in the modern cloud-powered workplace. That’s why software-defined perimeter solutions are in your future.

2 days ago

Why you need to check your virtualization host’s NUMA configuration

Should you disallow NUMA spanning in your Hyper-V architecture? There are two sides to this story, and you’ll get both…

3 days ago

Getting started with Visual Studio Code and integrating with Azure DevOps

Coding may not be the No. 1 job duty for cloud admins, but it is often a part of the…

3 days ago

Apple Event 2019: New iPad, Apple Watch, and more

Apple Event 2019 was more than just about iPhones. The tech giant also rolled out new iPads, an upgraded Apple…

3 days ago

Migrating and configuring Hyper-V passthrough disks

Believe it or not, Hyper-V virtual machines can be configured to use a dedicated physical hard disk, which is referred…

4 days ago

Cut costs and kick back: Use Azure automation accounts for VM utilization

Using Azure automation accounts to start and stop your VMs may just save you enough time to kick back, relax,…

4 days ago