New-AzNotificationHubKey
Genereer de autorisatieregelsleutel voor een NotificationHub opnieuw.
Syntaxis
New-AzNotificationHubKey
[-ResourceGroup] <String>
[-Namespace] <String>
[-NotificationHub] <String>
[[-AuthorizationRule] <String>]
[-PolicyKey] <String>
[-Force]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
New-AzNotificationHubKey cmdlet genereert de primaire sleutel/secundaire sleutel opnieuw voor de NotificationHub-autorisatieregel.
Voorbeelden
Voorbeeld 1
New-AzNotificationHubKey -ResourceGroup "ContosoNotificationsGroup" -Namespace "ContosoNamespace" -NotificationHub "ContosoInternalHub" -AuthorizationRule "DefaultListenSharedAccessSignature" -PolicyKey "PrimaryKey"
PrimaryConnectionString : Endpoint=sb://contosonamespace.servicebus.windows.net/;SharedAccessKeyName=DefaultListenShare
dAccessSignature;SharedAccessKey=V******z0=
SecondaryConnectionString : Endpoint=sb://contosonamespace.servicebus.windows.net/;SharedAccessKeyName=DefaultListenShare
dAccessSignature;SharedAccessKey=V******HV=
PrimaryKey : V******z0=
SecondaryKey : V******HV=
KeyName : DefaultListenSharedAccessSignature
Parameters
-AuthorizationRule
Type: String
Position: 3
Default value: None
Vereist: False
Pijplijninvoer accepteren: True
Jokertekens accepteren: False
-Confirm
U wordt gevraagd om bevestiging voordat u de cmdlet uitvoert.
Type: SwitchParameter
Aliassen: cf
Position: Named
Default value: None
Vereist: False
Pijplijninvoer accepteren: False
Jokertekens accepteren: False
-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
-Force
Vraag niet om bevestiging.
Type: SwitchParameter
Position: Named
Default value: None
Vereist: False
Pijplijninvoer accepteren: False
Jokertekens accepteren: False
-Namespace
Type: String
Position: 1
Default value: None
Vereist: True
Pijplijninvoer accepteren: True
Jokertekens accepteren: False
-NotificationHub
Type: String
Position: 2
Default value: None
Vereist: True
Pijplijninvoer accepteren: True
Jokertekens accepteren: False
-PolicyKey
Type: String
Geaccepteerde waarden: PrimaryKey, SecondaryKey
Position: 4
Default value: None
Vereist: True
Pijplijninvoer accepteren: False
Jokertekens accepteren: False
-ResourceGroup
Type: String
Position: 0
Default value: None
Vereist: True
Pijplijninvoer accepteren: True
Jokertekens accepteren: False
-WhatIf
Toont wat er zou gebeuren als de cmdlet wordt uitgevoerd.
De cmdlet wordt niet uitgevoerd.
Type: SwitchParameter
Aliassen: wi
Position: Named
Default value: None
Vereist: False
Pijplijninvoer accepteren: False
Jokertekens accepteren: False
Uitvoerwaarden