azure-bp-definition-write

explicit azure emits CanModifyCode

match (effective permission)

{ "action": "Microsoft.Blueprint/blueprints/write", "scope_type": "subscription|managementGroup" }

emit

source typeIdentity
target typeBuildWorker
source<principal>
target<blueprint definition(s) targeting assignment(s)>
permissionsMicrosoft.Blueprint/blueprints/write
conditionsservice_state trigger_exists

Narrative

{principal.name} can write/modify the blueprint definition (Microsoft.Blueprint/blueprints/write), gaining CanModifyCode over its deployment.

Raw rule rules/explicit/azure-blueprints.yaml

id: azure-bp-definition-write
emits: CanModifyCode
applies_to:
- azure
match_effective_permission:
  action: Microsoft.Blueprint/blueprints/write
  scope_type: subscription|managementGroup
where: []
emit:
  source_type: Identity
  target_type: BuildWorker
  source: <principal>
  target: <blueprint definition(s) targeting assignment(s)>
  permissions:
  - Microsoft.Blueprint/blueprints/write
  conditions:
  - service_state
  - trigger_exists
  api_source: 'Azure ARM: roleAssignments query filtered by Microsoft.Blueprint/blueprints/write'
  narrative: '{principal.name} can write/modify the blueprint definition (Microsoft.Blueprint/blueprints/write),
    gaining CanModifyCode over its deployment.'
move · open · esc close