Skip to content

Instantly share code, notes, and snippets.

@mikepfeiffer
Created April 27, 2020 12:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mikepfeiffer/176776a8758b4e2910554a5c33392c12 to your computer and use it in GitHub Desktop.
Save mikepfeiffer/176776a8758b4e2910554a5c33392c12 to your computer and use it in GitHub Desktop.
Custom Role Definition (Azure RBAC)
{
"Name": "Virtual Machine Operator (Custom)",
"Id": null,
"IsCustom": true,
"Description": "Allows to start and stop (deallocate) Azure VMs",
"Actions": [
"Microsoft.Compute/*/read",
"Microsoft.Compute/virtualMachines/deallocate/action",
"Microsoft.Compute/virtualMachines/start/action"
],
"NotActions": [
],
"AssignableScopes": [
"/subscriptions/SUBSCRIPTION_ID"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment