title | description | services | documentationCenter | author | manager | editor | ms.service | ms.devlang | ms.topic | ms.tgt_pltfrm | ms.workload | ms.date | ms.author |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Tutorial - Grant access for a user using RBAC and the Azure portal | Microsoft Docs |
Use role-based access control (RBAC) to grant permissions to a user by assigning a role in the Azure portal. |
role-based-access-control |
rolyon |
mtillman |
role-based-access-control |
tutorial |
identity |
11/30/2018 |
rolyon |
Role-based access control (RBAC) is the way that you manage access to resources in Azure. In this tutorial, you grant a user access to create and manage virtual machines in a resource group.
In this tutorial, you learn how to:
[!div class="checklist"]
- Grant access for a user at a resource group scope
- Remove access
If you don't have an Azure subscription, create a free account before you begin.
Sign in to the Azure portal at http://portal.azure.com.
-
In the navigation list, choose Resource groups.
-
Choose Add to open the Resource group blade.
-
For Resource group name, enter rbac-resource-group.
-
Select a subscription and a location.
-
Choose Create to create the resource group.
-
Choose Refresh to refresh the list of resource groups.
The new resource group appears in your resource groups list.
In RBAC, to grant access, you create a role assignment.
-
In the list of Resource groups, choose the new rbac-resource-group resource group.
-
Choose Access control (IAM).
-
Choose the Role assignments tab to see the current list of role assignments.
-
Choose Add role assignment to open the Add role assignment pane.
If you don't have permissions to assign roles, the Add role assignment option will be disabled.
-
In the Role drop-down list, select Virtual Machine Contributor.
-
In the Select list, select yourself or another user.
-
Choose Save to create the role assignment.
After a few moments, the user is assigned the Virtual Machine Contributor role at the rbac-resource-group resource group scope.
In RBAC, to remove access, you remove a role assignment.
-
In the list of role assignments, add a checkmark next to the user with the Virtual Machine Contributor role.
-
Choose Remove.
-
In the remove role assignment message that appears, choose Yes.
-
In the navigation list, choose Resource groups.
-
Choose rbac-resource-group to open the resource group.
-
Choose Delete resource group to delete the resource group.
-
On the Are you sure you want to delete blade, type the resource group name: rbac-resource-group.
-
Choose Delete to delete the resource group.
[!div class="nextstepaction"] Tutorial: Grant access for a user using RBAC and PowerShell