Get-​Azure​Rm​Event​Hub​Key

Gets the primary key details of the specified Event Hubs authorization rule.

Syntax

Get-AzureRmEventHubKey
   [-ResourceGroupName] <String>
   [-NamespaceName] <String>
   [-EventHubName] <String>
   -AuthorizationRuleName <String>
   [<CommonParameters>]

Description

The Get-AzureRmEventHubKey cmdlet returns the primary key details of the specified Event Hubs authorization rule.

Examples

Example 1

PS C:\> Get-AzureRmEventHubKey -ResourceGroupName MyResourceGroupName -NamespaceName MyNamespaceName -EventHubName MyEventHubName -AuthorizationRuleName MyAuthRuleName

Gets details of the primary key for the authorization rule MyAuthRuleName.

Required Parameters

-AuthorizationRuleName

Event Hubs authorization rule name.

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

The Event Hub name.

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

Inputs

System.String

Outputs

Microsoft.Azure.Commands.EventHub.Models.ListKeysAttributes