Get-​Azure​SB​Authorization​Rule

Gets Service bus authorization rules.

Syntax

Get-AzureSBAuthorizationRule
   -EntityName <String>
   -EntityType <ServiceBusEntityType>
   [-Name <String>]
   -Namespace <String>
   [-Permission <AccessRights[]>]
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]

Description

Gets Service bus authorization rules.

Examples

Example 1: Get authorization rule at namespace level

PS C:\> Get-AzureSBAuthorizationRule -Namespace MyNamespace

Gets all available authorization rules at MyNamespace.

Example 2: Get authorization rule for a Queue

PS C:\> Get-AzureSBAuthorizationRule -Namespace MyNamespace -EntityName MyEntity -EntityType Queue

Gets all available authorization rules a MyEntity Queue on MyNamespace.

Example 3: Get authorization rule by name

PS C:\> Get-AzureSBAuthorizationRule -Name MyRule -Namespace MyNamespace

Gets an authorization rule called MyRule on MyNamespace level.

Example 4: Get authorization rule by permission

PS C:\> Get-AzureSBAuthorizationRule -Namespace MyNamespace -Permission $("Send")

Gets all authorization rules that have send permission on namespace level.

Required Parameters

-EntityName

The entity name to apply rule at.

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

The entity type (Queue, Topic, Relay, NotificationHub).

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

The namespace name to apply the authorization rule. If no EntityName provided the rule will be on the namespace level.

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

Optional Parameters

-Name

The unique authorization rule name.

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

The authorization permissions to filter (Send, Manage, Listen). This uses exact match.

Type:AccessRights[]
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Type:AzureSMProfile
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False