You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/role-based-access-control/custom-roles-cli.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,12 +12,17 @@ ms.devlang: na
12
12
ms.topic: conceptual
13
13
ms.tgt_pltfrm: na
14
14
ms.workload: identity
15
-
ms.date: 02/20/2019
15
+
ms.date: 03/18/2020
16
16
ms.author: rolyon
17
17
ms.reviewer: bagovind
18
18
---
19
19
# Create or update custom roles for Azure resources using Azure CLI
20
20
21
+
> [!IMPORTANT]
22
+
> Adding a management group to `AssignableScopes` is currently in preview.
23
+
> This preview version is provided without a service level agreement, and it's not recommended for production workloads. Certain features might not be supported or might have constrained capabilities.
24
+
> For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
25
+
21
26
If the [built-in roles for Azure resources](built-in-roles.md) don't meet the specific needs of your organization, you can create your own custom roles. This article describes how to list, create, update, or delete custom roles using Azure CLI.
22
27
23
28
For a step-by-step tutorial on how to create a custom role, see [Tutorial: Create a custom role for Azure resources using Azure CLI](tutorial-custom-role-cli.md).
@@ -181,7 +186,7 @@ To update a custom role, first use [az role definition list](/cli/azure/role/def
181
186
az role definition update --role-definition <role_definition>
182
187
```
183
188
184
-
The following example adds the *Microsoft.Insights/diagnosticSettings/* operation to the *Actions* of the *Virtual Machine Operator* custom role.
189
+
The following example adds the *Microsoft.Insights/diagnosticSettings/* operation to `Actions` and adds a management group to `AssignableScopes` for the *Virtual Machine Operator* custom role. Adding a management group to `AssignableScopes` is currently in preview.
Copy file name to clipboardExpand all lines: articles/role-based-access-control/custom-roles-powershell.md
+44-3Lines changed: 44 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,12 +12,17 @@ ms.devlang: na
12
12
ms.topic: conceptual
13
13
ms.tgt_pltfrm: na
14
14
ms.workload: identity
15
-
ms.date: 02/20/2019
15
+
ms.date: 03/18/2020
16
16
ms.author: rolyon
17
17
ms.reviewer: bagovind
18
18
---
19
19
# Create or update custom roles for Azure resources using Azure PowerShell
20
20
21
+
> [!IMPORTANT]
22
+
> Adding a management group to `AssignableScopes` is currently in preview.
23
+
> This preview version is provided without a service level agreement, and it's not recommended for production workloads. Certain features might not be supported or might have constrained capabilities.
24
+
> For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
25
+
21
26
If the [built-in roles for Azure resources](built-in-roles.md) don't meet the specific needs of your organization, you can create your own custom roles. This article describes how to list, create, update, or delete custom roles using Azure PowerShell.
22
27
23
28
For a step-by-step tutorial on how to create a custom role, see [Tutorial: Create a custom role for Azure resources using Azure PowerShell](tutorial-custom-role-powershell.md).
@@ -69,7 +74,7 @@ If the selected subscription isn't in the `AssignableScopes` of the role, the cu
69
74
To list a custom role definition, use [Get-AzRoleDefinition](/powershell/module/az.resources/get-azroledefinition). This is the same command as you use for a built-in role.
The following example adds a management group to `AssignableScopes` of the *Virtual Machine Operator* custom role. Adding a management group to `AssignableScopes` is currently in preview.
Using the previous JSON template, you can easily modify an existing custom role to add or remove Actions. Update the JSON template and add the read action for networking as shown in the following example. The definitions listed in the template are not cumulatively applied to an existing definition, meaning that the role appears exactly as you specify in the template. You also need to update the Id field with the ID of the role. If you aren't sure what this value is, you can use the [Get-AzRoleDefinition](/powershell/module/az.resources/get-azroledefinition) cmdlet to get this information.
Copy file name to clipboardExpand all lines: articles/role-based-access-control/custom-roles-rest.md
+43-20Lines changed: 43 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,11 @@ ms.reviewer: bagovind
20
20
---
21
21
# Create or update custom roles for Azure resources using the REST API
22
22
23
+
> [!IMPORTANT]
24
+
> Adding a management group to `AssignableScopes` is currently in preview.
25
+
> This preview version is provided without a service level agreement, and it's not recommended for production workloads. Certain features might not be supported or might have constrained capabilities.
26
+
> For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
27
+
23
28
If the [built-in roles for Azure resources](built-in-roles.md) don't meet the specific needs of your organization, you can create your own custom roles. This article describes how to list, create, update, or delete custom roles using the REST API.
24
29
25
30
## List custom roles
@@ -54,9 +59,10 @@ To list custom roles at a scope, use the [Role Definitions - List](/rest/api/aut
> | `subscriptions/{subscriptionId1}/resourceGroups/{resourceGroup1}` | Resource group |
174
+
> | `providers/Microsoft.Management/managementGroups/{groupId1}` | Management group |
162
175
163
176
1. Replace *{roleDefinitionId}* with the GUID identifier of the custom role.
164
177
165
178
1. Within the request body, replace *{roleDefinitionId}* with the GUID identifier.
166
179
167
-
1. In the `assignableScopes` property, replace *{subscriptionId}* with your subscription identifier. Or specify a resource group.
180
+
1. If `assignableScopes` is a subscription or resource group, replace the *{subscriptionId}* or *{resourceGroup}* instances with your identifiers.
181
+
182
+
1. If `assignableScopes` is a management group, replace the *{groupId}* instance with your management group identifier. Adding a management group to `assignableScopes` is currently in preview.
168
183
169
184
1. In the `actions` property, add the operations that the role allows to be performed.
170
185
@@ -199,7 +214,8 @@ To create a custom role, use the [Role Definitions - Create Or Update](/rest/api
0 commit comments