Get-​Azure​Rm​Service​Bus​Namespace​Key

Gets the primary and secondary connection strings for the namespace.

Syntax

Get-AzureRmServiceBusNamespaceKey
   [-ResourceGroup] <String>
   [-NamespaceName] <String>
   [-AuthorizationRuleName] <String>
   [<CommonParameters>]

Description

The Get-AzureRmServiceBusNamespaceKey cmdlet returns the primary and secondary connection strings for the given namespace.

Examples

Example 1

PS C:\> Get-AzureRmServiceBusNamespaceKey -ResourceGroup Default-ServiceBus-WestUS -NamespaceName SB-Example1 -AuthorizationRuleName AuthoRule1

Primary and secondary connection string to the specified namespace.

Required Parameters

-AuthorizationRuleName

Service Bus namespace authorization rule name.

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

The Service Bus namespace name.

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

The name of the resource group.

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

Inputs

-ResourceGroup

Inputs

-NamespaceName

Inputs

-AuthorizationRuleName

Outputs

Microsoft.Azure.Management.ServiceBus.Models.ResourceListKeys