Skip to content

Instantly share code, notes, and snippets.

@machv
Created July 29, 2020 11:31
Show Gist options
  • Save machv/1f5241265c3ba765e1c218b6974f73e0 to your computer and use it in GitHub Desktop.
Save machv/1f5241265c3ba765e1c218b6974f73e0 to your computer and use it in GitHub Desktop.

Install

New-AzRoleDefinition -InputFile rbac.json

Root management group

If you want to link Custom role to the top most root management group (that is always available), use an ID that corresponds with AAD Tenant ID GUID.

FYI

Adding a management group to AssignableScopes is currently in preview. This preview version is provided without a service level agreement

More details about progress:

{
"Name": "My MG Role",
"Id": null,
"IsCustom": true,
"Description": "Contributor without reservation permission",
"Actions": [
"*"
],
"NotActions": [
"Microsoft.Authorization/*/Delete",
"Microsoft.Authorization/*/Write"
],
"DataActions": [
],
"NotDataActions": [
],
"AssignableScopes": [
"/providers/Microsoft.Management/managementGroups/46938462-5677-4c99-a776-7c286612e9bd"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment