last sync: 2025-Aug-12 17:23:12 UTC

Deny VNet creation outside of Resource Groups based on a naming standard

Community Policy definition

Source Repository Community-Policy GitHub
JSON Community-Policy GitHub
Deploy policy 1f81b2f1-8cb2-402e-836c-1b6fcbdd641c (1.0.0) to Azure
Display name Deny VNet creation outside of Resource Groups based on a naming standard
Id 1f81b2f1-8cb2-402e-836c-1b6fcbdd641c
Version 1.0.0
Details on versioning
Category Network
Microsoft Learn
Description This Policy will deny the creation of VNets outside of Resource Groups that follow a certain naming convention.
Mode All
Type Custom Community
Effect Default
Audit
Allowed
Deny, Audit, Disabled
RBAC role(s) none
Rule aliases
Rule resource types IF (1)
Microsoft.Network/virtualNetworks
JSON
EPAC
Deploy policy 1f81b2f1-8cb2-402e-836c-1b6fcbdd641c (1.0.0) to Azure