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/best-practices.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: rolyon
5
5
manager: femila
6
6
ms.service: role-based-access-control
7
7
ms.topic: conceptual
8
-
ms.date: 01/30/2024
8
+
ms.date: 03/30/2025
9
9
ms.author: rolyon
10
10
#Customer intent: As a dev, devops, or it admin, I want to learn how to best use Azure RBAC.
11
11
---
@@ -22,7 +22,7 @@ When planning your access control strategy, it's a best practice to grant users
22
22
23
23
The following diagram shows a suggested pattern for using Azure RBAC.
24
24
25
-

25
+
:::image type="content" source="./media/best-practices/rbac-least-privilege.png" alt-text="Diagram of suggested pattern for using Azure RBAC and least privilege." lightbox="./media/best-practices/rbac-least-privilege.png":::
26
26
27
27
For information about how to assign roles, see [Assign Azure roles using the Azure portal](role-assignments-portal.yml).
Copy file name to clipboardExpand all lines: articles/role-based-access-control/custom-roles-portal.md
+23-23Lines changed: 23 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,13 @@ author: rolyon
5
5
manager: femila
6
6
ms.service: role-based-access-control
7
7
ms.topic: how-to
8
-
ms.date: 04/05/2023
8
+
ms.date: 03/30/2025
9
9
ms.author: rolyon
10
10
---
11
11
12
12
# Create or update Azure custom roles using the Azure portal
13
13
14
-
If the [Azure built-in roles](built-in-roles.md) don't meet the specific needs of your organization, you can create your own Azure custom roles. Just like built-in roles, you can assign custom roles to users, groups, and service principals at management group, subscription and resource group scopes. Custom roles are stored in a Microsoft Entra directory and can be shared across subscriptions. Each directory can have up to 5000 custom roles. Custom roles can be created using the Azure portal, Azure PowerShell, Azure CLI, or the REST API. This article describes how to create custom roles using the Azure portal.
14
+
If the [Azure built-in roles](built-in-roles.md) don't meet the specific needs of your organization, you can create your own Azure custom roles. Just like built-in roles, you can assign custom roles to users, groups, and service principals at management group, subscription, and resource group scopes. Custom roles are stored in a Microsoft Entra directory and can be shared across subscriptions. Each directory can have up to 5000 custom roles. Custom roles can be created using the Azure portal, Azure PowerShell, Azure CLI, or the REST API. This article describes how to create custom roles using the Azure portal.
15
15
16
16
## Prerequisites
17
17
@@ -40,15 +40,15 @@ If an existing role does not quite have the permissions you need, you can clone
40
40
41
41
The following screenshot shows the Access control (IAM) page opened for a subscription.
42
42
43
-

43
+
:::image type="content" source="./media/shared/sub-access-control.png" alt-text="Screenshot of Access control (IAM) page for a subscription." lightbox="./media/shared/sub-access-control.png":::
44
44
45
45
1. Click the **Roles** tab to see a list of all the built-in and custom roles.
46
46
47
47
1. Search for a role you want to clone such as the Billing Reader role.
48
48
49
49
1. At the end of the row, click the ellipsis (**...**) and then click **Clone**.
:::image type="content" source="./media/custom-roles-portal/clone-menu.png" alt-text="Screenshot of Clone context menu." lightbox="./media/custom-roles-portal/clone-menu.png":::
52
52
53
53
This opens the custom roles editor with the **Clone a role** option selected.
54
54
@@ -62,7 +62,7 @@ If you prefer, you can follow these steps to start a custom role from scratch.
62
62
63
63
1. Click **Add** and then click **Add custom role**.
64
64
65
-

65
+
:::image type="content" source="./media/custom-roles-portal/add-custom-role-menu.png" alt-text="Screenshot of Add custom role menu." lightbox="./media/custom-roles-portal/add-custom-role-menu.png":::
66
66
67
67
This opens the custom roles editor with the **Start from scratch** option selected.
68
68
@@ -126,7 +126,7 @@ If you prefer, you can specify most of your custom role values in a JSON file. Y
126
126
127
127
1. Click **Add** and then click **Add custom role**.
128
128
129
-

129
+
:::image type="content" source="./media/custom-roles-portal/add-custom-role-menu.png" alt-text="Screenshot of Add custom role menu." lightbox="./media/custom-roles-portal/add-custom-role-menu.png":::
130
130
131
131
This opens the custom roles editor.
132
132
@@ -148,13 +148,13 @@ On the **Basics** tab, you specify the name, description, and baseline permissio
148
148
149
149
The **Baseline permissions** option should already be set based on the previous step, but you can change.
150
150
151
-

151
+
:::image type="content" source="./media/custom-roles-portal/basics-values.png" alt-text="Screenshot of Basics tab with values specified." lightbox="./media/custom-roles-portal/basics-values.png":::
152
152
153
153
## Step 4: Permissions
154
154
155
155
On the **Permissions** tab, you specify the permissions for your custom role. Depending on whether you cloned a role or if you started with JSON, the Permissions tab might already list some permissions.
156
156
157
-

157
+
:::image type="content" source="./media/custom-roles-portal/permissions.png" alt-text="Screenshot of Permissions tab for create custom role." lightbox="./media/custom-roles-portal/permissions.png":::
158
158
159
159
### Add or remove permissions
160
160
@@ -168,13 +168,13 @@ Follow these steps to add or remove permissions for your custom role.
168
168
169
169
A list of resource provider cards will be displayed based on your search string. For a list of how resource providers map to Azure services, see [Resource providers for Azure services](../azure-resource-manager/management/azure-services-resource-providers.md).
170
170
171
-

171
+
:::image type="content" source="./media/shared/add-permissions-provider.png" alt-text="Screenshot of Add permissions pane with resource provider." lightbox="./media/shared/add-permissions-provider.png":::
172
172
173
173
1. Click a resource provider card that might have the permissions you want to add to your custom role, such as **Microsoft Billing**.
174
174
175
175
A list of the management permissions for that resource provider is displayed based on your search string.
:::image type="content" source="./media/shared/add-permissions-list.png" alt-text="Screenshot of Add permissions list." lightbox="./media/shared/add-permissions-list.png":::
178
178
179
179
1. If you are looking for permissions that apply to the data plane, click **Data Actions**. Otherwise, leave the actions toggle set to **Actions** to list permissions that apply to the control plane. For more information, about the differences between the control plane and data plane, see [Control and data actions](role-definitions.md#control-and-data-actions).
180
180
@@ -186,7 +186,7 @@ Follow these steps to add or remove permissions for your custom role.
186
186
187
187
The permission gets added as an `Actions` or a `DataActions`.
:::image type="content" source="./media/custom-roles-portal/permissions-list-add.png" alt-text="Screenshot of permission added." lightbox="./media/custom-roles-portal/permissions-list-add.png":::
190
190
191
191
1. To remove permissions, click the delete icon at the end of the row. In this example, since a user will not need the ability to create support tickets, the `Microsoft.Support/*` permission can be deleted.
If you want to add a new wildcard permission, you can't add it using the **Add permissions** pane. To add a wildcard permission, you have to add it manually using the **JSON** tab. For more information, see [Step 6: JSON](#step-6-json).
202
202
203
203
> [!NOTE]
204
-
> It's recommended that you specify `Actions` and `DataActions` explicitly instead of using the wildcard (`*`) character. The additional access and permissions granted through future `Actions` or `DataActions` may be unwanted behavior using the wildcard.
204
+
> It's recommended that you specify `Actions` and `DataActions` explicitly instead of using the wildcard (`*`) character. The additional access and permissions granted through future `Actions` or `DataActions` might be unwanted behavior using the wildcard.
205
205
206
206
### Exclude permissions
207
207
@@ -228,11 +228,11 @@ When you exclude a permission, it is added as a `NotActions` or `NotDataActions`
228
228
229
229
1. Once you find one or more permissions that you want to exclude, add a check mark next to the permissions and then click the **Add** button.
:::image type="content" source="./media/custom-roles-portal/custom-role-success.png" alt-text="Screenshot of create custom role message." lightbox="./media/custom-roles-portal/custom-role-success.png":::
280
280
281
281
If any errors are detected, a message will be displayed.
:::image type="content" source="./media/custom-roles-portal/custom-role-list.png" alt-text="Screenshot of custom role list" lightbox="./media/custom-roles-portal/custom-role-list.png":::
302
302
303
303
## Update a custom role
304
304
@@ -308,7 +308,7 @@ Follow these steps to view your custom roles.
308
308
309
309
The custom role is opened in the editor.
310
310
311
-

311
+
:::image type="content" source="./media/custom-roles-portal/edit-menu.png" alt-text="Screenshot of Custom role menu." lightbox="./media/custom-roles-portal/edit-menu.png":::
312
312
313
313
1. Use the different tabs to update the custom role.
314
314
@@ -324,7 +324,7 @@ Follow these steps to view your custom roles.
324
324
325
325
1. Click the ellipsis (**...**) for the custom role you want to delete and then click **Delete**.
326
326
327
-

327
+
:::image type="content" source="./media/shared/custom-roles-delete-menu.png" alt-text="Screenshot of a list of custom roles that can be selected for deletion." lightbox="./media/shared/custom-roles-delete-menu.png":::
328
328
329
329
It can take a few minutes for your custom role to be completely deleted.
Copy file name to clipboardExpand all lines: articles/role-based-access-control/quickstart-assign-role-user-portal.md
+21-22Lines changed: 21 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: rolyon
6
6
manager: femila
7
7
ms.service: role-based-access-control
8
8
ms.topic: tutorial
9
-
ms.date: 10/15/2021
9
+
ms.date: 03/30/2025
10
10
ms.author: rolyon
11
11
ms.custom: subject-rbac-steps
12
12
#Customer intent: As a new user, I want to see how to grant access to resources in the portal, so that I can start granting access to others.
@@ -30,19 +30,19 @@ Sign in to the [Azure portal](https://portal.azure.com).
30
30
31
31
## Create a resource group
32
32
33
-
1. In the navigation list, click**Resource groups**.
33
+
1. In the navigation list, select**Resource groups**.
34
34
35
-
1.Click**New** to open the **Create a resource group** page.
35
+
1.Select**New** to open the **Create a resource group** page.
36
36
37
-

37
+
:::image type="content" source="./media/quickstart-assign-role-user-portal/resource-group.png" alt-text="Screenshot of Create a new resource group page." lightbox="./media/quickstart-assign-role-user-portal/resource-group.png":::
38
38
39
39
1. Select a subscription.
40
40
41
41
1. For **Resource group** name, enter **example-group** or another name.
42
42
43
-
1.Click**Review + create** and then click**Create** to create the resource group.
43
+
1.Select**Review + create** and then select**Create** to create the resource group.
44
44
45
-
1.Click**Refresh** to refresh the list of resource groups.
45
+
1.Select**Refresh** to refresh the list of resource groups.
46
46
47
47
The new resource group appears in your resource groups list.
48
48
@@ -52,54 +52,53 @@ In Azure RBAC, to grant access, you assign an Azure role.
52
52
53
53
1. In the list of **Resource groups**, open the new **example-group** resource group.
54
54
55
-
1. In the navigation menu, click**Access control (IAM)**.
55
+
1. In the navigation menu, select**Access control (IAM)**.
56
56
57
-
1.Click the **Role assignments** tab to see the current list of role assignments.
57
+
1.Select the **Role assignments** tab to see the current list of role assignments.
58
58
59
-

59
+
:::image type="content" source="./media/shared/rg-role-assignments.png" alt-text="Screenshot of Access control (IAM) page for resource group." lightbox="./media/shared/rg-role-assignments.png":::
60
60
61
-
62
-
1. Click **Add** > **Add role assignment**.
61
+
1. Select **Add** > **Add role assignment**.
63
62
64
63
If you don't have permissions to assign roles, the Add role assignment option will be disabled.
65
64
66
-

65
+
:::image type="content" source="~/reusable-content/ce-skilling/azure/media/role-based-access-control/add-role-assignment-menu-generic.png" alt-text="Screenshot of Access control (IAM) page with Add role assignment menu open." lightbox="~/reusable-content/ce-skilling/azure/media/role-based-access-control/add-role-assignment-menu-generic.png":::
67
66
68
67
1. On the **Role** tab, select the **Virtual Machine Contributor** role.
69
68
70
-

69
+
:::image type="content" source="~/reusable-content/ce-skilling/azure/media/role-based-access-control/add-role-assignment-role-generic.png" alt-text="Screenshot of Add role assignment page with Role tab selected." lightbox="~/reusable-content/ce-skilling/azure/media/role-based-access-control/add-role-assignment-role-generic.png":::
71
70
72
71
1. On the **Members** tab, select yourself or another user.
73
72
74
73
1. On the **Review + assign** tab, review the role assignment settings.
75
74
76
-
1.Click**Review + assign** to assign the role.
75
+
1.Select**Review + assign** to assign the role.
77
76
78
77
After a few moments, the user is assigned the Virtual Machine Contributor role at the example-group resource group scope.
79
78
80
-

79
+
:::image type="content" source="./media/quickstart-assign-role-user-portal/vm-contributor-assignment.png" alt-text="Screenshot of Virtual Machine Contributor role assignment." lightbox="./media/quickstart-assign-role-user-portal/vm-contributor-assignment.png":::
81
80
82
81
## Remove access
83
82
84
83
In Azure RBAC, to remove access, you remove a role assignment.
85
84
86
85
1. In the list of role assignments, add a checkmark next to the user with the Virtual Machine Contributor role.
87
86
88
-
1.Click**Remove**.
87
+
1.Select**Remove**.
89
88
90
-

89
+
:::image type="content" source="./media/quickstart-assign-role-user-portal/remove-role-assignment.png" alt-text="Screenshot of Remove role assignments message." lightbox="./media/quickstart-assign-role-user-portal/remove-role-assignment.png":::
91
90
92
-
1. In the remove role assignment message that appears, click**Yes**.
91
+
1. In the remove role assignment message that appears, select**Yes**.
93
92
94
93
## Clean up
95
94
96
-
1. In the navigation list, click**Resource groups**.
95
+
1. In the navigation list, select**Resource groups**.
97
96
98
-
1.Click**example-group** to open the resource group.
97
+
1.Select**example-group** to open the resource group.
99
98
100
-
1.Click**Delete resource group** to delete the resource group.
99
+
1.Select**Delete resource group** to delete the resource group.
101
100
102
-
1. On the **Are you sure you want to delete** pane, type the resource group name and then click**Delete**.
101
+
1. On the **Are you sure you want to delete** pane, type the resource group name and then select**Delete**.
0 commit comments