Get-AzNotificationHubPNSCredential
Hiermee haalt u de PNS-referenties voor een Notification Hub op.
Syntaxis
Get-AzNotificationHubPNSCredential
[-ResourceGroup] <String>
[-Namespace] <String>
[-NotificationHub] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
De Get-AzNotificationHubPNSCredential cmdlet haalt de PNS-referenties (Platform Notification Service) op voor een Notification Hub. 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 Phone 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 |
Aliassen: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | 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 |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | 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 |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | 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 |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
Invoerwaarden
Uitvoerwaarden
Verwante koppelingen
Azure PowerShell