New-​Azure​Rm​Event​Hub​Namespace​Authorization​Rule

Creates a new authorization rule on the specified namespace.

Syntax

New-AzureRmEventHubNamespaceAuthorizationRule
   [-ResourceGroupName] <String>
   [-NamespaceName] <String>
   [-Confirm]
   [-WhatIf]
   -AuthorizationRuleName <String>
   -Rights <String[]>
   [<CommonParameters>]

Description

The New-AzureRmEventHubNamespaceAuthorizationRule cmdlet creates a new authorization rule on the specified Event Hubs namespace.

Examples

Example 1

PS C:\> New-AzureRmEventHubNamespaceAuthorizationRule -ResourceGroupName MyResourceGroupName -NamespaceName MyNamespaceName -AuthorizationRuleName MyAuthRuleName -Rights @("Listen","Send")

Creates the authorization rule MyAuthRuleName with Listen and Send rights, for Event Hubs namespace MyNamespaceName, in resource group MyResourceGroupName.

Required Parameters

-AuthorizationRuleName

Authorization rule name.

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

The Event Hubs namespace name.

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

Resource group name.

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

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

Type:String[]
Position:Named
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

System.String

Outputs

Microsoft.Azure.Commands.EventHub.Models.SharedAccessAuthorizationRuleAttributes