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

Community Policy definition

Adds the default network security group to subnets in case there is none.

Name Adds the default network security group to subnets in case there is none.
Community-Policy GitHub
Id network_modify-subnet-nsg
Version n/a
details on versioning
Category Network
Microsoft docs
Description Adds the default network security group to subnets in case there is none. Nothing happens when another network security group is already associated with the subnet.
Mode All
Type Custom Community
Effect Fixed
modify
Used RBAC Role
Role Name Role Id
Network Contributor 4d97b98b-1d4f-4787-a291-c67834d212e7
Rule Aliases IF (1)
Alias Namespace ResourceType DefaultPath Modifiable
Microsoft.Network/virtualNetworks/subnets/networkSecurityGroup.id Microsoft.Network virtualNetworks/subnets properties.networkSecurityGroup.id true
THEN-Operations (1)
Alias Namespace ResourceType DefaultPath Modifiable
Microsoft.Network/virtualNetworks/subnets/networkSecurityGroup.id Microsoft.Network virtualNetworks/subnets properties.networkSecurityGroup.id true
Rule ResourceTypes
JSON