New-​Azure​Rm​Service​Bus​Namespace​Authorization​Rule

Creates a new authorization rule for the specified Service Bus namespace

Syntax

New-AzureRmServiceBusNamespaceAuthorizationRule
   [-ResourceGroup] <String>
   [-NamespaceName] <String>
   [-AuthorizationRuleName] <String>
   [-Rights] <String[]>
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

The New-AzureRmServiceBusNamespaceAuthorizationRule cmdlet creates a new authorization rule for the specified Service Bus namespace.

Examples

Example 1

PS C:\> New-AzureRmServiceBusNamespaceAuthorizationRule -ResourceGroup Default-ServiceBus-WestUS -NamespaceName SB-Example1 -AuthorizationRuleName AuthoRule1 -Rights @("Listen","Send")

Creates AuthoRule1 with Listen and Send rights for the namespace SB-Example1.

Required Parameters

-AuthorizationRuleName

The authorization rule name.

Type:String
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
-ResourceGroup

The name of the resource group.

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

The Rights; for example, @("Listen","Send","Manage")

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

Optional Parameters

-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
-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

Inputs

-NamespaceName

Inputs

-AuthorizationRuleName

Inputs

-Rights

Outputs

Microsoft.Azure.Commands.ServiceBus.Models.SharedAccessAuthorizationRuleAttributes