azure-nsg-nsg-write

explicit azure emits CanModifyConfiguration

match (effective permission)

{ "action": "Microsoft.Network/networkSecurityGroups/write", "resource_type": "Microsoft.Network/networkSecurityGroups" }

emit

source typeIdentity
target typeFirewall
source<principal (Identity)>
target<NSG node (Firewall)>
permissionsMicrosoft.Network/networkSecurityGroups/write

Narrative

{principal.name} can create or fully replace NSG {target.name} (Microsoft.Network/networkSecurityGroups/write), including removing all existing Deny rules and inserting broad Allow rules.

Raw rule rules/explicit/azure-nsg.yaml

id: azure-nsg-nsg-write
emits: CanModifyConfiguration
applies_to:
- azure
match_effective_permission:
  action: Microsoft.Network/networkSecurityGroups/write
  resource_type: Microsoft.Network/networkSecurityGroups
emit:
  source_type: Identity
  target_type: Firewall
  source: <principal (Identity)>
  target: <NSG node (Firewall)>
  permissions:
  - Microsoft.Network/networkSecurityGroups/write
  narrative: '{principal.name} can create or fully replace NSG {target.name} (Microsoft.Network/networkSecurityGroups/write),
    including removing all existing Deny rules and inserting broad Allow rules.'
move · open · esc close