azure-bp-artifact-write
match (effective permission)
{
"action": "Microsoft.Blueprint/blueprints/artifacts/write",
"scope_type": "subscription|managementGroup"
}
emit
| source type | Identity |
|---|---|
| target type | BuildWorker |
| source | <principal> |
| target | <blueprint assignment(s) that deploy the definition> |
| permissions | Microsoft.Blueprint/blueprints/artifacts/write |
| conditions | service_state trigger_exists |
Narrative
{principal.name} can write blueprint artifacts (Microsoft.Blueprint/blueprints/artifacts/write), gaining CanModifyCode over the definition.
Raw rule rules/explicit/azure-blueprints.yaml
id: azure-bp-artifact-write
emits: CanModifyCode
applies_to:
- azure
match_effective_permission:
action: Microsoft.Blueprint/blueprints/artifacts/write
scope_type: subscription|managementGroup
where: []
emit:
source_type: Identity
target_type: BuildWorker
source: <principal>
target: <blueprint assignment(s) that deploy the definition>
permissions:
- Microsoft.Blueprint/blueprints/artifacts/write
conditions:
- service_state
- trigger_exists
api_source: 'Azure ARM: roleAssignments query filtered by Microsoft.Blueprint/blueprints/artifacts/write'
narrative: '{principal.name} can write blueprint artifacts (Microsoft.Blueprint/blueprints/artifacts/write),
gaining CanModifyCode over the definition.'