Skip to content

Instantly share code, notes, and snippets.

@mmckechney
Created January 5, 2019 01:22
Show Gist options
  • Save mmckechney/58ee1f90aa4c649e1a352e698f9b0798 to your computer and use it in GitHub Desktop.
Save mmckechney/58ee1f90aa4c649e1a352e698f9b0798 to your computer and use it in GitHub Desktop.
JSON template to create an advanced DevTest User role
{
"Name": "Dev Test Labs Advanced User",
"Id": null,
"IsCustom": true,
"Description": "Lets you connect, start, restart, shutdown and resize ALL virtual machines in your Azure DevTest Labs.",
"Actions": [
"Microsoft.Authorization/*/read",
"Microsoft.Compute/availabilitySets/read",
"Microsoft.Compute/virtualMachines/*/read",
"Microsoft.Compute/virtualMachines/deallocate/action",
"Microsoft.Compute/virtualMachines/read",
"Microsoft.Compute/virtualMachines/restart/action",
"Microsoft.Compute/virtualMachines/start/action",
"Microsoft.DevTestLab/*/read",
"Microsoft.DevTestLab/labs/claimAnyVm/action",
"Microsoft.DevTestLab/labs/createEnvironment/action",
"Microsoft.DevTestLab/labs/formulas/delete",
"Microsoft.DevTestLab/labs/formulas/read",
"Microsoft.DevTestLab/labs/formulas/write",
"Microsoft.DevTestLab/labs/policySets/evaluatePolicies/action",
"Microsoft.DevTestLab/labs/virtualMachines/claim/action",
"Microsoft.DevTestLab/labs/virtualmachines/listApplicableSchedules/action",
"Microsoft.Network/loadBalancers/backendAddressPools/join/action",
"Microsoft.Network/loadBalancers/inboundNatRules/join/action",
"Microsoft.Network/networkInterfaces/*/read",
"Microsoft.Network/networkInterfaces/join/action",
"Microsoft.Network/networkInterfaces/read",
"Microsoft.Network/networkInterfaces/write",
"Microsoft.Network/publicIPAddresses/*/read",
"Microsoft.Network/publicIPAddresses/join/action",
"Microsoft.Network/publicIPAddresses/read",
"Microsoft.Network/virtualNetworks/subnets/join/action",
"Microsoft.Resources/deployments/operations/read",
"Microsoft.Resources/deployments/read",
"Microsoft.Resources/subscriptions/resourceGroups/read",
"Microsoft.Storage/storageAccounts/listKeys/action",
"Microsoft.DevTestLab/labs/virtualMachines/Start/action",
"Microsoft.DevTestLab/labs/virtualMachines/Stop/action",
"Microsoft.DevTestLab/labs/virtualMachines/write",
"microsoft.devtestlab/labs/virtualmachines/resize/action",
"Microsoft.DevTestLab/labs/customImages/*",
"Microsoft.DevTestLab/labs/users/disks/read",
"Microsoft.DevTestLab/labs/users/disks/write",
"Microsoft.DevTestLab/labs/users/disks/Attach/action",
"Microsoft.DevTestLab/labs/users/disks/Detach/action",
"Microsoft.DevTestLab/labs/virtualMachines/AddDataDisk/action",
"Microsoft.DevTestLab/labs/virtualMachines/ApplyArtifacts/action",
"Microsoft.DevTestLab/labs/virtualMachines/DetachDataDisk/action",
"Microsoft.DevTestLab/labs/virtualMachines/Restart/action",
"Microsoft.DevTestLab/labs/virtualMachines/TransferDisks/action",
"Microsoft.DevTestLab/labs/virtualMachines/Redeploy/action",
"Microsoft.DevTestLab/labs/virtualMachines/UnClaim/action"
],
"NotActions": [
"Microsoft.Compute/virtualMachines/vmSizes/read"
],
"AssignableScopes": [
"/subscriptions/59e53936-0bd6-4f30-b3b6-18bd2eae7699"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment