在Azure中,如何允许非订阅管理员创建新资源 [英] In Azure, how to allow non-subscription admins to create new resources

查看:71
本文介绍了在Azure中,如何允许非订阅管理员创建新资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Azure中有一个资源组(RG).我是订阅管理员,在RG中,我的角色是所有者.我还有另外两个分配给该RG的用户,他们的角色也是所有者.

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.

我可以毫无问题地在RG中创建任何资源.其他2个用户不能.例如,当他们尝试添加SQL Server资源时,他们告诉我们订阅没有注册资源提供者的权限:Microsoft.Sql".

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".

问题:是否可以向那些非订阅管理员用户授予在RG中创建资源的权限,或者这是只有订阅管理员才能做的事情?

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?

推荐答案

是的,您可以通过两种方式做到这一点,即授予注册资源提供者的权限或预先注册所有资源提供者.

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

要注册资源提供者,请使用powershell或cli.powershell示例:

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.

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

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

这篇关于在Azure中,如何允许非订阅管理员创建新资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆