How To Give Access To Resource Group In Azure

Giving access to a resource group in Azure is an essential operation for managing permissions for your resource group in your cloud environment. This article will walk you through 2 simple approaches to easily do this task.

How to grant access to resource group in Azure

Let us dive deep into the two approaches individually.

  • Approach-1: Using Azure Portal
  • Approach-2: Using PowerShell

Approach-1: Using Azure Portal

To give access to Resource Group in Azure, Follow the below steps

1. Log in to the Azure Portal.

2. Search for Resource Groups and click on the search result Resource Groups, as shown below.

add user to resource group azure

3. Click on the specific Resource Group to which you wish to give access.

give access to resource group azure

4. On the Resource Group page, click on the Access Control (IAM) link from the left navigation, then click on the Add role assignment option from the + Add dropdown, as shown in the screenshot below.

give access to azure resource group

5. Based on your requirements, search for a Virtual machine contributor or any other role, select the same role from the search results, and click the Next button.

how to give access to azure resource group

6. On the Members tab, click on the + Select Members button, as shown in the screenshot below.

how to give user access to azure resource group

7. On the Select members screen, Search for the name or email ID of the member, select the member, and click on the Select button, as shown in the screenshot below.

how to grant access to resource group in azure

Click on the Review + Assign button.

how to give access to resource group in azure

Again, click the Review + Assign button in the next window, as shown in the screenshot below.

give access to user to azure resource group

The screenshot below shows that the selected member was successfully added to the specified role.

azure resource group contributor role

Check out How to recover deleted Resource Group Azure

Approach-2: Using PowerShell

You can execute the below Azure PowerShell command to give the user access to the Azure Resource Group.

New-AzRoleAssignment -SignInName fewlines4biju_hotmail.com#EXT#@fewlines4bijuhotmail.onmicrosoft.com `
  -RoleDefinitionName "Contributor" `
  -ResourceGroupName "Demo789"

After executing the above command, I got the expected output shown in the screenshot below.

how to give access to resource group in azure PowerShell

Video Tutorial

Conclusion

Granting access to an Azure resource group is crucial to safeguarding it. As mentioned in this article, you can achieve this task using Azure Portal or PowerShell.

You may also like following the articles below

Azure Virtual Machine

DOWNLOAD FREE AZURE VIRTUAL MACHINE PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!