Skip to content

Commit 86213b9

Browse files
committed
Updated resource group refs in custom roles
1 parent c14e4c3 commit 86213b9

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

articles/role-based-access-control/custom-roles-rest.md

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ To list custom roles at a scope, use the [Role Definitions - List](/rest/api/aut
5454
> [!div class="mx-tableFixed"]
5555
> | Scope | Type |
5656
> | --- | --- |
57-
> | `subscriptions/{subscriptionId}` | Subscription |
58-
> | `subscriptions/{subscriptionId}/resourceGroups/myresourcegroup1` | Resource group |
59-
> | `subscriptions/{subscriptionId}/resourceGroups/myresourcegroup1/providers/Microsoft.Web/sites/mysite1` | Resource |
57+
> | `subscriptions/{subscriptionId1}` | Subscription |
58+
> | `subscriptions/{subscriptionId1}/resourceGroups/{resourceGroup1}` | Resource group |
59+
> | `subscriptions/{subscriptionId1}/resourceGroups/{resourceGroup1}/providers/Microsoft.Web/sites/{site1}` | Resource |
6060
> | `providers/Microsoft.Management/managementGroups/{groupId1}` | Management group |
6161
6262
1. Replace *{filter}* with the role type.
@@ -81,9 +81,9 @@ To get information about a custom role by its display name, use the [Role Defini
8181
> [!div class="mx-tableFixed"]
8282
> | Scope | Type |
8383
> | --- | --- |
84-
> | `subscriptions/{subscriptionId}` | Subscription |
85-
> | `subscriptions/{subscriptionId}/resourceGroups/myresourcegroup1` | Resource group |
86-
> | `subscriptions/{subscriptionId}/resourceGroups/myresourcegroup1/providers/Microsoft.Web/sites/mysite1` | Resource |
84+
> | `subscriptions/{subscriptionId1}` | Subscription |
85+
> | `subscriptions/{subscriptionId1}/resourceGroups/{resourceGroup1}` | Resource group |
86+
> | `subscriptions/{subscriptionId1}/resourceGroups/{resourceGroup1}/providers/Microsoft.Web/sites/{site1}` | Resource |
8787
> | `providers/Microsoft.Management/managementGroups/{groupId1}` | Management group |
8888
8989
1. Replace *{filter}* with the display name for the role.
@@ -110,9 +110,9 @@ To get information about a custom role by its unique identifier, use the [Role D
110110
> [!div class="mx-tableFixed"]
111111
> | Scope | Type |
112112
> | --- | --- |
113-
> | `subscriptions/{subscriptionId}` | Subscription |
114-
> | `subscriptions/{subscriptionId}/resourceGroups/myresourcegroup1` | Resource group |
115-
> | `subscriptions/{subscriptionId}/resourceGroups/myresourcegroup1/providers/Microsoft.Web/sites/mysite1` | Resource |
113+
> | `subscriptions/{subscriptionId1}` | Subscription |
114+
> | `subscriptions/{subscriptionId1}/resourceGroups/{resourceGroup1}` | Resource group |
115+
> | `subscriptions/{subscriptionId1}/resourceGroups/{resourceGroup1}/providers/Microsoft.Web/sites/{site1}` | Resource |
116116
> | `providers/Microsoft.Management/managementGroups/{groupId1}` | Management group |
117117
118118
1. Replace *{roleDefinitionId}* with the GUID identifier of the role definition.
@@ -151,6 +151,8 @@ To create a custom role, use the [Role Definitions - Create Or Update](/rest/api
151151
"assignableScopes": [
152152
"/subscriptions/{subscriptionId1}",
153153
"/subscriptions/{subscriptionId2}",
154+
"/subscriptions/{subscriptionId1}/resourceGroups/{resourceGroup1}",
155+
"/subscriptions/{subscriptionId2}/resourceGroups/{resourceGroup2}",
154156
"/providers/Microsoft.Management/managementGroups/{groupId1}"
155157
]
156158
}
@@ -162,17 +164,17 @@ To create a custom role, use the [Role Definitions - Create Or Update](/rest/api
162164
> [!div class="mx-tableFixed"]
163165
> | Scope | Type |
164166
> | --- | --- |
165-
> | `subscriptions/{subscriptionId}` | Subscription |
166-
> | `subscriptions/{subscriptionId}/resourceGroups/myresourcegroup1` | Resource group |
167+
> | `subscriptions/{subscriptionId1}` | Subscription |
168+
> | `subscriptions/{subscriptionId1}/resourceGroups/{resourceGroup1}` | Resource group |
167169
> | `providers/Microsoft.Management/managementGroups/{groupId1}` | Management group |
168170
169171
1. Replace *{roleDefinitionId}* with the GUID identifier of the custom role.
170172
171173
1. Within the request body, replace *{roleDefinitionId}* with the GUID identifier.
172174
173-
1. If `assignableScopes` is a subscription, replace *{subscriptionId}* instances with your subscription identifiers.
175+
1. If `assignableScopes` is a subscription or resource group, replace the *{subscriptionId}* or *{resourceGroup}* instances with your identifiers.
174176
175-
1. If `assignableScopes` is a management group, replace *{groupId}* instances with your management group identifiers. Adding a management group to `assignableScopes` is currently in preview.
177+
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.
176178
177179
1. In the `actions` property, add the operations that the role allows to be performed.
178180
@@ -231,8 +233,8 @@ To update a custom role, use the [Role Definitions - Create Or Update](/rest/api
231233
> [!div class="mx-tableFixed"]
232234
> | Scope | Type |
233235
> | --- | --- |
234-
> | `subscriptions/{subscriptionId}` | Subscription |
235-
> | `subscriptions/{subscriptionId}/resourceGroups/myresourcegroup1` | Resource group |
236+
> | `subscriptions/{subscriptionId1}` | Subscription |
237+
> | `subscriptions/{subscriptionId1}/resourceGroups/{resourceGroup1}` | Resource group |
236238
> | `providers/Microsoft.Management/managementGroups/{groupId1}` | Management group |
237239
238240
1. Replace *{roleDefinitionId}* with the GUID identifier of the custom role.
@@ -259,6 +261,8 @@ To update a custom role, use the [Role Definitions - Create Or Update](/rest/api
259261
"assignableScopes": [
260262
"/subscriptions/{subscriptionId1}",
261263
"/subscriptions/{subscriptionId2}",
264+
"/subscriptions/{subscriptionId1}/resourceGroups/{resourceGroup1}",
265+
"/subscriptions/{subscriptionId2}/resourceGroups/{resourceGroup2}",
262266
"/providers/Microsoft.Management/managementGroups/{groupId1}"
263267
]
264268
}
@@ -319,8 +323,8 @@ To delete a custom role, use the [Role Definitions - Delete](/rest/api/authoriza
319323
> [!div class="mx-tableFixed"]
320324
> | Scope | Type |
321325
> | --- | --- |
322-
> | `subscriptions/{subscriptionId}` | Subscription |
323-
> | `subscriptions/{subscriptionId}/resourceGroups/myresourcegroup1` | Resource group |
326+
> | `subscriptions/{subscriptionId1}` | Subscription |
327+
> | `subscriptions/{subscriptionId1}/resourceGroups/{resourceGroup1}` | Resource group |
324328
> | `providers/Microsoft.Management/managementGroups/{groupId1}` | Management group |
325329
326330
1. Replace *{roleDefinitionId}* with the GUID identifier of the custom role.

0 commit comments

Comments
 (0)