Skip to content

Latest commit

 

History

History
117 lines (86 loc) · 3.51 KB

Get-AzureRmNotificationHubPNSCredentials.md

File metadata and controls

117 lines (86 loc) · 3.51 KB
external help file Module Name ms.assetid online version schema
Microsoft.Azure.Commands.NotificationHubs.dll-Help.xml
AzureRM.NotificationHubs
2CCDF339-9D6E-4B0C-9201-BE641C8827F6
2.0.0

Get-AzureRmNotificationHubPNSCredentials

SYNOPSIS

Gets the PNS credentials for a notification hub.

SYNTAX

Get-AzureRmNotificationHubPNSCredentials [-ResourceGroup] <String> [-Namespace] <String>
 [-NotificationHub] <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]

DESCRIPTION

The Get-AzureRmNotificationHubPNSCredentials cmdlet gets the platform notification service (PNS) credentials for a notification hub. Each notification hub has a single set of PNS credentials. These credentials are applied to individual push notification services such as, but not limited to; the iOS push notification service, the Android push notification service, and Windows Phone 8.

EXAMPLES

Example 1: Get PNS credentials for a specific notification hub

PS C:\>Get-AzureRmNotificationHubPNSCredentials -Namespace "ContosoNamespace" -ResourceGroup "ContosoNotificationsGroup" -NotificationHub "ContosoInternalHub"

This command gets the PNS credentials for the notification hub named ContosoInternalHub that belongs to the resource group named ContosoNotificationsGroup.

PARAMETERS

-DefaultProfile

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

Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Parameter Sets: (All)
Aliases: AzureRmContext, AzureCredential

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Namespace

Specifies the namespace to which the notification hub is assigned. Namespaces provide a way to group and categorize notification hubs.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-NotificationHub

Specifies the notification hub that the PNS credentials are assigned to. Notification hubs are used to send push notifications to multiple clients regardless of the platform used by those clients.

Type: System.String
Parameter Sets: (All)
Aliases:

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

-ResourceGroup

Specifies the resource group to which the notification hub is assigned. Resource groups organize items such as namespaces, notification hubs, and authorization rules in ways that help simply inventory management and Azure administration.

Type: System.String
Parameter Sets: (All)
Aliases:

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

System.String

OUTPUTS

Microsoft.Azure.Commands.NotificationHubs.Models.NotificationHubAttributes

NOTES

RELATED LINKS

Get-AzureRmNotificationHub