last sync: 2023-Jun-19 17:45:01 UTC

Community Policy definition

Subnets must have an NSG and that NSG must have the same suffix as the subnet

Name Subnets must have an NSG and that NSG must have the same suffix as the subnet
Community-Policy GitHub
Id network_enforce-subnets-must-have-nsg-and-nsg-must-have-same-suffix-as-subnet
Version n/a
details on versioning
Category undefined
Microsoft docs
Description This Policy requires that all subnets have an NSG and that the provisioned NSG shares the same suffix as it's attached Subnet.
Mode All
Type Custom Community
Effect Fixed
deny
Used RBAC Role none
Rule Aliases IF (2)
Alias Namespace ResourceType DefaultPath Modifiable
Microsoft.Network/virtualNetworks/subnets[*] Microsoft.Network virtualNetworks properties.subnets[*] false
Microsoft.Network/virtualNetworks/subnets[*].name Microsoft.Network virtualNetworks properties.subnets[*].name false
Rule ResourceTypes IF (1)
Microsoft.Network/virtualNetworks
JSON