Skip to content

Instantly share code, notes, and snippets.

@mmckechney
Last active December 3, 2019 19:32
Show Gist options
  • Save mmckechney/1d3e7012096b7dce74697cda0102e1d1 to your computer and use it in GitHub Desktop.
Save mmckechney/1d3e7012096b7dce74697cda0102e1d1 to your computer and use it in GitHub Desktop.
Tag Manager - Custom Azure RBAC role
{
"Name": "Tag Manager Role",
"Description": "Can only add/edit/delete resource tags",
"Id": null,
"IsCustom": true,
"Actions": [
"*/read",
"Microsoft.Resources/tags/write",
"Microsoft.Resources/tags/delete"
],
"dataActions": [],
"notActions": [],
"notDataActions": [],
"AssignableScopes": [
"/subscriptions/1e1dcefc-d832-4de0-889a-2a48494c441b"
]
}
@mmckechney
Copy link
Author

mmckechney commented Dec 3, 2019

This custom RBAC role extends the "Reader" role with the access to manager resource Tags.
To apply this to your subscrption(s), download the file and change the "AssignableScopes" to the Guid(s) of your Azure subscriptions.

Then run the Azure CLI commands

az login
az role definition create --role-definition @TagManagerRole.json

to validate the role definition run

az role definition list -n "Tag Manager Role"

You can then assign the role via the Azure portal or CLI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment