azure-bp-definition-write
match (effective permission)
{
"action": "Microsoft.Blueprint/blueprints/write",
"scope_type": "subscription|managementGroup"
}
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 |
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.'