英文:
List permissions for a given role definition
问题
我找到了我的用户的角色分配列表如下:
Get-AzRoleAssignment -SignInName <email_or_userprincipalname>
从命令的输出中,我得到了一个特定的RoleDefinitionId,让我们称之为Contributor。我该如何找到Contributor角色所关联的所有权限?
我尝试过:
Get-AzureRmRoleDefinition -Id <id>
其中"id"是前一个命令中的RoleDefinitionId,但我收到了一个错误:
Get-AzureRmRoleDefinition:类型'Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient'的方法'get_SerializationSettings'在程序集'Microsoft.Azure.Commands.ResourceManager.Common,Version=4.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35'中没有实现。
英文:
I found the list role assignments for my user as follows:
Get-AzRoleAssignment -SignInName <email_or_userprincipalname>
From the output of the command, I am given a certain RoleDefinitionId, let's call it Contributor.
How can I find all of the permissions which the Contributor role has associated to it?
I tried:
Get-AzureRmRoleDefinition -Id <id>
where "id" is the RoleDefinitionId from the previous command, but I receive an error:
> Get-AzureRmRoleDefinition : Method 'get_SerializationSettings' in type
> 'Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient'
> from assembly 'Microsoft.Azure.Commands.ResourceManager.Common,
> Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
> does not have an implementation.
答案1
得分: 1
以下是已翻译的内容:
- Microsoft.Authorization/*/Delete
- Microsoft.Authorization/*/Write
- Microsoft.Authorization/elevateAccess/Action
- Microsoft.Blueprint/blueprintAssignments/write
- Microsoft.Blueprint/blueprintAssignments/delete and * for all access
英文:
A complete list can be found here
- Microsoft.Authorization/*/Delete
- Microsoft.Authorization/*/Write
- Microsoft.Authorization/elevateAccess/Action
- Microsoft.Blueprint/blueprintAssignments/write
- Microsoft.Blueprint/blueprintAssignments/delete and * for all access
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论