azure-vm-start

derived azure emits CanStart

match (effective permission)

{ "action": "Microsoft.Compute/virtualMachines/start/action", "scope_type": "resource|resourceGroup|subscription" }

emit

source typeIdentity
target typeCompute
source<principal>
target<virtualMachine>
permissionsMicrosoft.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.'
move · open · esc close