last sync: 2025-Jul-25 17:39:48 UTC

Newly created subnets will be assigned a Route Table

Community Policy definition

Source Repository Community-Policy GitHub
JSON Community-Policy GitHub
Deploy policy ad0328f0-915c-422f-98be-bc8d60159827 (1.0.0) to Azure
Display name Newly created subnets will be assigned a Route Table
Id ad0328f0-915c-422f-98be-bc8d60159827
Version 1.0.0
Details on versioning
Category Network
Microsoft Learn
Description This policy applies a specific Route Table to every newly created Subnet. 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-vnet-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 All
Type Custom Community
Effect Default
Append
Allowed
Append, Deny, Audit, Disabled
RBAC role(s) none
Rule aliases IF (1)
Alias Namespace ResourceType Path PathIsDefault DefaultPath Modifiable
Microsoft.Network/virtualNetworks/subnets/routeTable.id Microsoft.Network virtualNetworks/subnets properties.routeTable.id True True
THEN-Details (1)
Alias Namespace ResourceType Path PathIsDefault DefaultPath Modifiable
Microsoft.Network/virtualNetworks/subnets/routeTable.id Microsoft.Network virtualNetworks/subnets properties.routeTable.id True True
Rule resource types IF (1)
Microsoft.Network/virtualNetworks/subnets
JSON
EPAC
Deploy policy ad0328f0-915c-422f-98be-bc8d60159827 (1.0.0) to Azure