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

Gets the details of an Event Hubs namespace authorization rule, or gets a list of authorization rules.

Syntax

Get-AzureRmEventHubNamespaceAuthorizationRule
   [-ResourceGroupName] <String>
   [-NamespaceName] <String>
   [[-AuthorizationRuleName] <String>]
   [<CommonParameters>]

Description

The Get-AzureRmEventHubNamespaceAuthorizationRule cmdlet gets either the details of a specified Event Hubs namespace authorization rule, or a list of namespace authorization rules. If the authorization rule name is provided, the details of a single authorization rule is returned. If an authorization rule name is not provided, a list of all authorization rules in the namespace is returned.

Examples

Example 1

PS C:\> Get-AzureRmEventHubNamespaceAuthorizationRule -ResourceGroupName MyResourceGroupName -NamespaceName MyNamespaceName -AuthorizationRuleName MyAuthRuleName

Returns the authorization rule MyAuthRuleName in the Event Hubs namespace MyNamespaceName, with the resource group MyResourceGroupName.

Example 2

PS C:\> Get-AzureRmEventHubNamespaceAuthorizationRule -ResourceGroupName MyResourceGroupName -NamespaceName MyNamespaceName -AuthorizationRuleName RootManageSharedAccessKey

Returns the default authorization rule RootManageSharedAccessKey in the Event Hubs namespace MyNamespaceName, with the resource group MyResourceGroupName.

Example 3

PS C:\> Get-AzureRmEventHubNamespaceAuthorizationRule -ResourceGroupName MyResourceGroupName -NamespaceName MyNamespaceName

Returns all authorization rules in the Event Hubs namespace MyNamespaceName, with the resource group MyResourceGroupName.

Required Parameters

-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 Event Hubs namespace authorization rule name.

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

Inputs

System.String

Outputs

System.Collections.Generic.List`1[[Microsoft.Azure.Commands.EventHub.Models.SharedAccessAuthorizationRuleAttributes, Microsoft.Azure.Commands.EventHub, Version=0.0.1.0, Culture=neutral, PublicKeyToken=null]]