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

Community Policy definition

VNet Peering is only allowed to approved VNets.

Name VNet Peering is only allowed to approved VNets.
Community-Policy GitHub
Id network_deny-peering-to-non-approved-vnets
Version n/a
details on versioning
Category undefined
Microsoft docs
Description If you try to peer to a VNet that's not on the list of approved VNets then the action will be denied.
Mode All
Type Custom Community
Effect Default
Deny
Allowed
Deny, Disabled
Used RBAC Role none
Rule Aliases IF (2)
Alias Namespace ResourceType DefaultPath Modifiable
Microsoft.Network/virtualNetworks/virtualNetworkPeerings/remoteVirtualNetwork.id Microsoft.Network virtualNetworks/virtualNetworkPeerings properties.remoteVirtualNetwork.id false
Microsoft.Network/virtualNetworks/virtualNetworkPeerings[*].remoteVirtualNetwork.id Microsoft.Network virtualNetworks properties.VirtualNetworkPeerings[*].properties.remoteVirtualNetwork.id false
Rule ResourceTypes IF (1)
Microsoft.Network/virtualNetworks
JSON