Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Set-AzureSBAuthorizationRule

Set-AzureSBAuthorizationRule

microsoft.windowsazure.commands.dll

Synopsis

Updates existing Service Bus authorization rule

Syntax

Set-AzureSBAuthorizationRule [-Name] [-Permission] [-Namespace] [-EntityName] [-EntityType] [-PrimaryKey] [-SecondaryKey] [<CommonParameters>]

Detailed Description

Updates existing Service Bus authorization rule

Parameters

-Name <>

The unique authorization rule name

Aliases

None

Required?

true

Position

Named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Permission <>

The authorization permissions (Send, Manage, Listen)

Aliases

None

Required?

true

Position

Named

Default value

None

Accept pipeline input?

false

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

Aliases

None

Required?

true

Position

Named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-EntityName <>

The entity name to apply rule at.

Aliases

None

Required?

true

Position

Named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-EntityType <>

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

Aliases

None

Required?

true

Position

Named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-PrimaryKey <>

The Shared Access Signature primary key. Will be generated if not provided

Aliases

None

Required?

false

Position

Named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-SecondaryKey <>

The Shared Access Signature secondary key

Aliases

None

Required?

false

Position

Named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------- Renew primary key for authorization rule at namespace level --------------

C:\PS>

The primary key is renewed

Set-AzureSBAuthorizationRule -Name MyRule -Namespace MyNamespace -Permission $("Send")

-------------- Update authorization rule permission --------------

C:\PS>

Updates the permissions

Set-AzureSBAuthorizationRule -Name MyRule -Namespace MyNamespace -Permission $("Listen", "Send") -EntityName MyEntity -EntityType Queue

Get-AzureSBAuthorizationRule
New-AzureSBAuthorizationRule
Remove-AzureSBAuthorizationRule