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

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

Syntax

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

Description

The Get-AzureRmEventHubNamespaceKey cmdlet returns the primary key details of the specified authorization rule in the given Event Hubs namespace.

Examples

Example 1

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

Gets details of the primary key for the authorization rule MyAuthRuleName on the Event Hubs namespace MyNamespaceName in the resource group MyResourceGroupName.

Required Parameters

-AuthorizationRuleName

The name of the authorization rule on the Event Hubs namespace.

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

Inputs

System.String

Outputs

Microsoft.Azure.Commands.EventHub.Models.ListKeysAttributes