Skip to content

Instantly share code, notes, and snippets.

@PeterOrneholm
Last active January 14, 2019 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PeterOrneholm/356bf53bec9ce42bc3d560c7faed7e6b to your computer and use it in GitHub Desktop.
Save PeterOrneholm/356bf53bec9ce42bc3d560c7faed7e6b to your computer and use it in GitHub Desktop.
Template and script to create a role in Azure that gives contributor access for Portal Dashboards.
{
"Name": "Portal Dashboard Contributor",
"Id": "",
"IsCustom": true,
"Description": "Can read, write (add/modify) and remove portal dashboards.",
"Actions": [
"Microsoft.Portal/dashboards/read",
"Microsoft.Portal/dashboards/write",
"Microsoft.Portal/dashboards/delete"
],
"NotActions": [],
"DataActions": [],
"NotDataActions": [],
"AssignableScopes": [
"/subscriptions/{subscriptionId1}",
"/subscriptions/{subscriptionId2}",
"/subscriptions/{subscriptionId3}"
]
}
Connect-AzureRmAccount
New-AzureRmRoleDefinition -InputFile .\azure-role-dashboard-contributor.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment