New-AzNotificationHubKey
Återskapa auktoriseringsregelnyckeln för en NotificationHub .
Syntax
New-AzNotificationHubKey
[-ResourceGroup] <String>
[-Namespace] <String>
[-NotificationHub] <String>
[[-AuthorizationRule] <String>]
[-PolicyKey] <String>
[-Force]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
New-AzNotificationHubKey cmdlet återskapar den primära nyckeln/sekundärnyckeln för NotificationHub-auktoriseringsregeln.
Exempel
Exempel 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
Parametrar
-AuthorizationRule
Typ: String
Position: 3
Standardvärde: None
Obligatorisk: False
Godkänn pipeline-indata: True
Godkänn jokertecken: False
-Confirm
Uppmanar dig att bekräfta innan du kör cmdleten.
Typ: SwitchParameter
Alias: cf
Position: Named
Standardvärde: None
Obligatorisk: False
Godkänn pipeline-indata: False
Godkänn jokertecken: False
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure
Typ: IAzureContextContainer
Alias: AzContext, AzureRmContext, AzureCredential
Position: Named
Standardvärde: None
Obligatorisk: False
Godkänn pipeline-indata: False
Godkänn jokertecken: False
-Force
Be inte om bekräftelse.
Typ: SwitchParameter
Position: Named
Standardvärde: None
Obligatorisk: False
Godkänn pipeline-indata: False
Godkänn jokertecken: False
-Namespace
Typ: String
Position: 1
Standardvärde: None
Obligatorisk: True
Godkänn pipeline-indata: True
Godkänn jokertecken: False
-NotificationHub
Typ: String
Position: 2
Standardvärde: None
Obligatorisk: True
Godkänn pipeline-indata: True
Godkänn jokertecken: False
-PolicyKey
Typ: String
Godkända värden: PrimaryKey, SecondaryKey
Position: 4
Standardvärde: None
Obligatorisk: True
Godkänn pipeline-indata: False
Godkänn jokertecken: False
-ResourceGroup
Typ: String
Position: 0
Standardvärde: None
Obligatorisk: True
Godkänn pipeline-indata: True
Godkänn jokertecken: False
-WhatIf
Visar vad som skulle hända om cmdleten körs.
Cmdleten körs inte.
Typ: SwitchParameter
Alias: wi
Position: Named
Standardvärde: None
Obligatorisk: False
Godkänn pipeline-indata: False
Godkänn jokertecken: False
Utdata