SALES: 1-800-867-1380
Expand Minimize

Get-AzureSBAuthorizationRule

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Get-AzureSBAuthorizationRule

Gets Service bus authorization rules

Syntax

Parameter Set: EntitySAS
Get-AzureSBAuthorizationRule [[-Name] <String> ] [[-Permission] <AccessRights[]> ] [-Namespace] <String> [-EntityName] <String> [-EntityType] <ServiceBusEntityType> [ <CommonParameters>]

Parameter Set: NamespaceSAS
Get-AzureSBAuthorizationRule [[-Name] <String> ] [[-Permission] <AccessRights[]> ] [-Namespace] <String> [ <CommonParameters>]




Detailed Description

Gets Service bus authorization rules

Parameters

-EntityName<String>

The entity name to apply rule at.


Aliases

none

Required?

true

Position?

4

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-EntityType<ServiceBusEntityType>

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


Aliases

none

Required?

true

Position?

5

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

The unique authorization rule name


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Namespace<String>

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


Aliases

none

Required?

true

Position?

3

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Permission<AccessRights[]>

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


Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see  about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

-------------- Get authorization rule at namespace level --------------

Gets all available authorization rules at MyNamespace


C:\PS>Get-AzureSBAuthorizationRule -Namespace MyNamespace

-------------- Get authorization rule for a Queue --------------

Gets all available authorization rules a MyEntity Queue on MyNamespace


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

-------------- Get authorization rule by name --------------

Gets an authorization rule called MyRule on MyNamespace level


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

-------------- Get authorization rule by permisssion --------------

Gets all authorization rules that have send permission on namespace level


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

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft