last sync: 2025-Jul-15 17:24:34 UTC

Enforce VNET DNS servers

Community Policy definition

Source Repository Community-Policy GitHub
JSON Community-Policy GitHub
Deploy policy d8ebd9c5-3b41-41bc-845d-5069a808d3ea (1.0.0) to Azure
Display name Enforce VNET DNS servers
Id d8ebd9c5-3b41-41bc-845d-5069a808d3ea
Version 1.0.0
Details on versioning
Category Network
Microsoft Learn
Description This policy prevent settings non authorized dns servers for vnets.
Mode Indexed
Type Custom Community
Effect Default
Audit
Allowed
Deny, Audit, Disabled
RBAC role(s) none
Rule aliases IF (1)
Alias Namespace ResourceType Path PathIsDefault DefaultPath Modifiable
Microsoft.Network/virtualNetworks/dhcpOptions.dnsServers[*] Microsoft.Network virtualNetworks properties.dhcpOptions.dnsServers[*] True True
Rule resource types IF (1)
Microsoft.Network/virtualNetworks
JSON
EPAC
Deploy policy d8ebd9c5-3b41-41bc-845d-5069a808d3ea (1.0.0) to Azure