Last active
January 14, 2019 14:54
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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}" | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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