< Back

Get-AzureRmNotificationHubsNamespaceListKeys

Tue Jan 29, 2019 9:59 pm

NAME Get-AzureRmNotificationHubsNamespaceListKeys



SYNOPSIS

Gets the primary and secondary connection strings associated with a notification hub namespace authorization rule.





SYNTAX

Get-AzureRmNotificationHubsNamespaceListKeys [-ResourceGroup] <String> [-Namespace] <String> [-AuthorizationRule] <String> [-DefaultProfile

<IAzureContextContainer>] [<CommonParameters>]





DESCRIPTION

The Get-AzureRmNotificationHubsNamespaceListKeys cmdlet returns the primary and secondary connection strings for a Shared Access Signature (SAS)

authorization rule assigned to a notification hub namespace.



Authorization rules manage user rights to a notification hub namespace. Each rule includes a primary and a secondary connection string.





PARAMETERS

-AuthorizationRule <String>

Specifies the name of a SAS authentication rule. These rules determine the type of access that users have to the notification hub.



Required? true

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Namespace <String>

Specifies the namespace containing the connection strings that this cmdlet gets.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroup <String>

Specifies the resource group to which the namespace is assigned.



Resource groups organize items such as namespaces, notification hubs, and authorization rules in ways that help simply inventory management

and Azure administration.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

Microsoft.Azure.Management.NotificationHubs.Models.ResourceListKeys







NOTES









Example 1: Get the primary and secondary connection strings for an authorization rule



PS C:\\>Get-AzureRmNotificationHubsNamespaceListKeys -Namespace "ContosoNamespace" -ResourceGroup "ContosoNotificationsGroup" -AuthorizationRule

"ListenRule"



This command returns the primary and secondary connection strings for the authorization rule named ListenRule assigned to the ContosoNamespace

namespace. When you run this command you must include the name of the resource group that the namespace is assigned to.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... celistkeys

Get-AzureRmNotificationHubsNamespace

Get-AzureRmNotificationHubsNamespaceAuthorizationRules