azure-stack-definition-write

explicit azure emits CanModifyCode

match (effective permission)

{ "action": "Microsoft.Resources/deploymentStacks/write", "scope_type": "subscription|managementGroup|resourceGroup" }

emit

source typeIdentity
target typeBuildWorker
source<principal>
target<deployment stack>
permissionsMicrosoft.Resources/deploymentStacks/write
conditionsservice_state trigger_exists

Narrative

{principal.name} can write/update Deployment Stacks (Microsoft.Resources/deploymentStacks/write), gaining CanModifyCode over the stack template.

Raw rule rules/explicit/azure-blueprints.yaml

id: azure-stack-definition-write
emits: CanModifyCode
applies_to:
- azure
match_effective_permission:
  action: Microsoft.Resources/deploymentStacks/write
  scope_type: subscription|managementGroup|resourceGroup
where: []
emit:
  source_type: Identity
  target_type: BuildWorker
  source: <principal>
  target: <deployment stack>
  permissions:
  - Microsoft.Resources/deploymentStacks/write
  conditions:
  - service_state
  - trigger_exists
  api_source: 'Azure ARM: roleAssignments query filtered by Microsoft.Resources/deploymentStacks/write'
  narrative: '{principal.name} can write/update Deployment Stacks (Microsoft.Resources/deploymentStacks/write),
    gaining CanModifyCode over the stack template.'
move · open · esc close