Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Azure, how to allow non-subscription admins to create new resources

Tags:

azure

I have a Resource Group (RG) in Azure. I am the subscription admin and in the RG my role is Owner. I also have two other users assigned to this RG, and their roles are also Owners.

I can create any resources in the RG with no issues. The other 2 users cannot. For example, when they tried to add SQL Server resource, they we told that "The subscription doesn't have permissions to register the resource provider(s): Microsoft.Sql".

Question: is it possible to grant those non-subscription admin users permission to create resources in the RG or this is something only subscription admin can do?

like image 273
Andrei Avatar asked May 15 '17 19:05

Andrei


People also ask

What permissions are needed to create a resource group in Azure?

Update: Based on Azure built-in [RBAC] roles, there is no other built-in role that provides the necessary permission to create (or write) resource groups.

Can contributor create resources in Azure?

Well yes and no. So if you're assigned some blanket role like Contributor you should be able to create any kind of resources. However with Custom Roles , an administrator can get super creative and only allow you to create resources of a certain kind.

What role may be allowed to enable a user to create and manage resources but not grant access to others?

Owner - Has full access to all resources including the right to delegate access to others. Contributor - Can create and manage all types of Azure resources but can't grant access to others.


2 Answers

Yes, you can do that, 2 ways, grant permission to register resource providers or register all resource providers upfront.

To register resource providers use powershell or cli. powershell sample:

Get-AzureRmResourceProvider -ListAvailable | Where-Object { $_.RegistrationState -eq 'NotRegistered'} | Register-AzureRmResourceProvider

Or use the portal. Go to subscriptions, pick subscription in question, pick resource providers and register needed resource providers.

Reference:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-overview

Explanation: https://blogs.msdn.microsoft.com/azure4fun/2016/10/20/common-problem-when-using-azure-resource-groups-rbac/

like image 154
4c74356b41 Avatar answered Sep 28 '22 08:09

4c74356b41


Yes. You can. In the Subscriptions Tab on the left of your portal screen, select your subscription and go to IAM (Identity and Access Management). Select the role that you wish to give to the users in this case "SQL Server Contributor" and add the users. Contributor role will give them the right to create/delete resources but not the right to give access to the same resource to other users. Check this link for more details.

You can register the required resources provides in the same Subscriptions Tab, in the Resource Providers section.

like image 35
Flemin Adambukulam Avatar answered Sep 28 '22 07:09

Flemin Adambukulam