Get-​Azure​Rm​Role​Definition

Lists all Azure RBAC roles that are available for assignment.

Syntax

Get-AzureRmRoleDefinition
   [[-Name] <String>]
   [-Scope <String>]
   [-AtScopeAndBelow]
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
Get-AzureRmRoleDefinition
   [-Scope <String>]
   [-AtScopeAndBelow]
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [-Custom]
Get-AzureRmRoleDefinition
   [-Scope <String>]
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -Id <Guid>

Description

Use the Get-AzureRmRoleDefinition command with a particular role name to view its details. To inspect individual operations that a role grants access to, review the Actions and NotActions properties of the role.

Examples

-------------------------- Example 1 --------------------------

@{paragraph=PS C:\>}

PS C:\> Get-AzureRmRoleDefinition -Name Reader

Get the Reader role definition

-------------------------- Example 2 --------------------------

@{paragraph=PS C:\>}

PS C:\> Get-AzureRmRoleDefinition

Lists all RBAC role definitions

Required Parameters

-Custom

If specified, only displays the custom created roles in the directory.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Id

Role definition Id.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-AtScopeAndBelow

If specified, displays all role definitions.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-InformationAction

Specifies how this cmdlet responds to an information event.The acceptable values for this parameter are:- Continue

  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Role definition name. For e.g. Reader, Contributor, Virtual Machine Contributor.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Scope

Role definition scope.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Notes

Keywords: azure, azurerm, arm, resource, management, manager, resource, group, template, deployment