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

Community Policy definition

Deny Private Endpoints if not being deployed to a specific subnet

Name Deny Private Endpoints if not being deployed to a specific subnet
Community-Policy GitHub
Id network_deny-private-endpoint-if-not-in-specific-subnet
Version n/a
details on versioning
Category Network
Microsoft docs
Description This Policy will deny the creation of Private Endpoints if not within subnets that contain a key word.
Mode All
Type Custom Community
Effect Fixed
deny
Used RBAC Role none
Rule Aliases IF (2)
Alias Namespace ResourceType DefaultPath Modifiable
Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*] Microsoft.Network privateEndpoints properties.privateLinkServiceConnections[*].properties.groupIds[*] false
Microsoft.Network/privateEndpoints/subnet.id Microsoft.Network privateEndpoints properties.subnet.id false
Rule ResourceTypes IF (1)
Microsoft.Network/privateEndpoints
JSON