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

Community Policy definition

Newly created VNets will have certain subnets assigned a Route Table

Name Newly created VNets will have certain subnets assigned a Route Table
Community-Policy GitHub
Id network_append-route-table-to-subnet-during-vnet-creation-based-on-naming-convention-and-region
Version n/a
details on versioning
Category undefined
Microsoft docs
Description This policy applies a specific Route Table to subnets during VNet creation. This Policy will look for the existence of a keyword in a subnet name to apply the Policy. This policy must partner with the policy 'append-route-table-to-subnet-during-subnet-creation-based-on-naming-convention' in order to fully work. Additionally this policy is parameterized to be able to target all regions where a route table exists.
Mode n/a
Type Custom Community
Effect Default
Append
Allowed
Append, Disabled
Used RBAC Role none
Rule Aliases IF (2)
Alias Namespace ResourceType DefaultPath Modifiable
Microsoft.Network/virtualNetworks/subnets[*].name Microsoft.Network virtualNetworks properties.subnets[*].name false
Microsoft.Network/virtualNetworks/subnets[*].routeTable.id Microsoft.Network virtualNetworks properties.subnets[*].properties.routeTable.id true
THEN-Details (1)
Alias Namespace ResourceType DefaultPath Modifiable
Microsoft.Network/virtualNetworks/subnets[*].routeTable.id Microsoft.Network virtualNetworks properties.subnets[*].properties.routeTable.id true
Rule ResourceTypes IF (1)
Microsoft.Network/virtualNetworks
JSON