Delen via


Get-AzNotificationHubPNSCredential

Hiermee haalt u de PNS-referenties voor een Notification Hub op.

Syntax

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

Description

De cmdlet Get-AzNotificationHubPNSCredential haalt de PNS-referenties (Platform Notification Service) voor een Notification Hub op. Elke Notification Hub heeft één set PNS-referenties. Deze referenties worden toegepast op afzonderlijke pushmeldingsservices, zoals, maar niet beperkt tot; de iOS-pushmeldingsservice, de Android-pushmeldingsservice en Windows Telefoon 8.

Voorbeelden

Voorbeeld 1: PNS-referenties ophalen voor een specifieke Notification Hub

Get-AzNotificationHubPNSCredential -Namespace "ContosoNamespace" -ResourceGroup "ContosoNotificationsGroup" -NotificationHub "ContosoInternalHub"

Met deze opdracht worden de PNS-referenties voor de Notification Hub met de naam ContosoInternalHub ophaalt die deel uitmaakt van de resourcegroep ContosoNotificationsGroup.

Parameters

-DefaultProfile

De referenties, het account, de tenant en het abonnement dat wordt gebruikt voor communicatie met Azure

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

-Namespace

Hiermee geeft u de naamruimte aan waaraan de Notification Hub is toegewezen. Naamruimten bieden een manier om Notification Hubs te groeperen en te categoriseren.

Type:String
Position:1
standaardwaarde:None
Vereist:True
Accept pipeline input:True
Accept wildcard characters:False

-NotificationHub

Hiermee geeft u de Notification Hub waaraan de PNS-referenties zijn toegewezen. Notification Hubs worden gebruikt voor het verzenden van pushmeldingen naar meerdere clients, ongeacht het platform dat door deze clients wordt gebruikt.

Type:String
Position:2
standaardwaarde:None
Vereist:True
Accept pipeline input:True
Accept wildcard characters:False

-ResourceGroup

Hiermee geeft u de resourcegroep aan waaraan de Notification Hub is toegewezen. Resourcegroepen organiseren items zoals naamruimten, notification hubs en autorisatieregels op manieren die eenvoudig voorraadbeheer en Azure-beheer helpen.

Type:String
Position:0
standaardwaarde:None
Vereist:True
Accept pipeline input:True
Accept wildcard characters:False

Invoerwaarden

String

Uitvoerwaarden

NotificationHubAttributes