last sync: 2025-Jun-23 17:30:06 UTC

Deploy network watcher when virtual networks are created

Community Policy definition

Source Repository Community-Policy GitHub
JSON Community-Policy GitHub
Deploy policy 6478a552-e407-4821-b8d1-58db079493e9 (1.0.0) to Azure
Display name Deploy network watcher when virtual networks are created
Id 6478a552-e407-4821-b8d1-58db079493e9
Version 1.0.0
Details on versioning
Category Network
Microsoft Learn
Description This policy creates a network watcher resource in regions with virtual networks. You need to ensure existence of a resource group named networkWatcherRG, which will be used to deploy network watcher instances.
Mode Indexed
Type Custom Community
Effect Default
DeployIfNotExists
Allowed
DeployIfNotExists, AuditIfNotExists, Disabled
RBAC role(s)
Role Name Role Id
Network Contributor 4d97b98b-1d4f-4787-a291-c67834d212e7
Rule aliases
Rule resource types IF (1)
Microsoft.Network/virtualNetworks
THEN-Deployment (1)
Microsoft.Network/networkWatchers
JSON
EPAC
Deploy policy 6478a552-e407-4821-b8d1-58db079493e9 (1.0.0) to Azure