azure-vm-start
match (effective permission)
{
"action": "Microsoft.Compute/virtualMachines/start/action",
"scope_type": "resource|resourceGroup|subscription"
}
emit
| source type | Identity |
|---|---|
| target type | Compute |
| source | <principal> |
| target | <virtualMachine> |
| permissions | Microsoft.Compute/virtualMachines/start/action |
Narrative
{principal.name} can start stopped VM {target.name} (start/action) to enable command execution.
Raw rule rules/derived/azure/vm.yaml
id: azure-vm-start
emits: CanStart
match_effective_permission:
action: Microsoft.Compute/virtualMachines/start/action
scope_type: resource|resourceGroup|subscription
emit:
source_type: Identity
target_type: Compute
source: <principal>
target: <virtualMachine>
permissions:
- Microsoft.Compute/virtualMachines/start/action
note: Realizes CONDITIONAL(service_state) execution edges on stopped VMs.
narrative: '{principal.name} can start stopped VM {target.name} (start/action) to enable command execution.'