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

Updates the authorization rule on the specified Event Hubs namespace.

Syntax

Set-AzureRmEventHubNamespaceAuthorizationRule
   [-ResourceGroupName] <String>
   [-NamespaceName] <String>
   [-Confirm]
   [-WhatIf]
   [-AuthorizationRuleName <String>]
   -AuthRuleObj <SharedAccessAuthorizationRuleAttributes>
   [-Rights <String[]>]
   [<CommonParameters>]

Description

The Set-AzureRmEventHubNamespaceAuthorizationRule cmdlet updates the authorization rule on the specified Event Hubs namespace.

Examples

Example 1

PS C:\> Set-AzureRmEventHubNamespaceAuthorizationRule -ResourceGroupName MyResourceGroupName -NamespaceName MyNamespaceName -AuthorizationRuleName MyAuthRuleName -Rights @("Manage")

Updates the authorization rule MyAuthRuleName to grant Manage rights.

Required Parameters

-AuthRuleObj

The Event Hubs namespace authorization rule object.

Type:SharedAccessAuthorizationRuleAttributes
Position:Named
Default value:None
Accept pipeline input:False
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

Optional Parameters

-AuthorizationRuleName

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

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

Required if -AuthruleObj is not specified. Rights; for example, @("Listen","Send","Manage")

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

System.String

Outputs

Microsoft.Azure.Commands.EventHub.Models.SharedAccessAuthorizationRuleAttributes