Skip to content

Instantly share code, notes, and snippets.

@e-cite
Created December 6, 2020 13:32
Show Gist options
  • Save e-cite/8bd0ebb494b6ae0b892ffba81afcb970 to your computer and use it in GitHub Desktop.
Save e-cite/8bd0ebb494b6ae0b892ffba81afcb970 to your computer and use it in GitHub Desktop.
Azure IAM Role "VM operator" (Only start and stop VM)
{
"Name": "VM Operator",
"IsCustom": true,
"Description": "Can start, restart and stop (deallocate) virtual machines.",
"Actions": [
"Microsoft.Compute/*/read",
"Microsoft.Compute/virtualMachines/start/action",
"Microsoft.Compute/virtualMachines/restart/action",
"Microsoft.Compute/virtualMachines/deallocate/action"
],
"NotActions": [
],
"AssignableScopes": [
"/subscriptions/1234abcde-1234-1234-1234-123467abcdef"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment