azure-stack-mg-scope-enter-subscription
match (effective permission)
{
"action": "Microsoft.Resources/deploymentStacks/write",
"scope_type": "managementGroup"
}
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 |
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.'