azure-stack-mg-scope-enter-subscription

explicit azure emits CanEnterSubscription

match (effective permission)

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

emit

source typeIdentity
target typeSubscription
source<principal>
target<each child subscription of the management group>
permissionsMicrosoft.Resources/deploymentStacks/write
conditionsservice_state iam_permission

Narrative

{principal.name} can deploy Deployment Stacks at management-group scope (Microsoft.Resources/deploymentStacks/write), gaining CanEnterSubscription for each child subscription.

Raw rule rules/explicit/azure-blueprints.yaml

id: azure-stack-mg-scope-enter-subscription
emits: CanEnterSubscription
applies_to:
- azure
match_effective_permission:
  action: Microsoft.Resources/deploymentStacks/write
  scope_type: managementGroup
where: []
emit:
  source_type: Identity
  target_type: Subscription
  source: <principal>
  target: <each child subscription of the management group>
  permissions:
  - Microsoft.Resources/deploymentStacks/write
  conditions:
  - service_state
  - iam_permission
  api_source: 'Azure ARM: roleAssignments query filtered by Microsoft.Resources/deploymentStacks/write
    at MG scope'
  narrative: '{principal.name} can deploy Deployment Stacks at management-group scope (Microsoft.Resources/deploymentStacks/write),
    gaining CanEnterSubscription for each child subscription.'
move · open · esc close