Set-​Azure​Rm​Service​Bus​Queue​Authorization​Rule

Updates the specified authorization rule description for the given Service Bus queue.

Syntax

Set-AzureRmServiceBusQueueAuthorizationRule
   [-ResourceGroup] <String>
   [-NamespaceName] <String>
   [-AuthRuleObj] <SharedAccessAuthorizationRuleAttributes>
   [-QueueName] <String>
   [[-AuthorizationRuleName] <String>]
   [[-Rights] <String[]>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

The Set-AzureRmServiceBusQueueAuthorizationRule cmdlet updates the description for the specified authorization rule of the given Service Bus queue.

Examples

Example 1

PS C:\> $authRuleObj = Get-AzureRmServiceBusQueueAuthorizationRule -ResourceGroup Default-ServiceBus-WestUS -NamespaceName SB-Example1 -QueueName SB-Queue_exampl1 -AuthorizationRuleName SBAuthoRule1

PS C:\> $authRuleObj.Rights.Add("Manage")

PS C:\> Set-AzureRmServiceBusQueueAuthorizationRule -ResourceGroup Default-ServiceBus-WestUS -NamespaceName SB-Example1 -QueueName SB-Queue_exampl1 -AuthRuleObj $authRuleObj

Adds Manage to the access rights of the authorization rule SBAuthoRule1 of the queue SB-Queue_exampl1.

Required Parameters

-AuthRuleObj

The Service Bus queue authorization rule object.

Type:SharedAccessAuthorizationRuleAttributes
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-NamespaceName

The Service Bus namespace name.

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

The Service Bus queue name.

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

The name of the resource group.

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

Optional Parameters

-AuthorizationRuleName

The authorization rule name. Required if -AuthruleObj is not specified.

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

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Rights

The rights; for example @("Listen","Send","Manage"). Required if 'AuthruleObj' not specified.

Type:String[]
Position:4
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

-ResourceGroup

System.String

Inputs

-NamespaceName

System.String

Inputs

-QueueName

System.String

Inputs

-AuthRuleObj

Microsoft.Azure.Commands.ServiceBus.Models.SharedAccessAuthorizationRuleAttributes

Outputs

Microsoft.Azure.Commands.ServiceBus.Models.SharedAccessAuthorizationRuleAttributes