New-​Azure​Rm​Notification​Hub​Key

Regenerate the Authorization Rule Key for a NotificationHub .

Syntax

New-AzureRmNotificationHubKey
   [-ResourceGroup] <String>
   [-Namespace] <String>
   [-NotificationHub] <String>
   [[-AuthorizationRule] <String>]
   [-PolicyKey] <String>
   [-Force]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

New-AzureRmNotificationHubKey cmdlet regenerates the Primary Key/Secondary Key for the NotificationHub Authorization Rule.

Examples

Example 1

PS C:\> {{ Add example code here }}

{{ Add example description here }}

Required Parameters

-Namespace
Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-NotificationHub
Type:String
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-PolicyKey
Type:String
Parameter Sets:PrimaryKey, SecondaryKey
Position:4
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ResourceGroup
Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-AuthorizationRule
Type:String
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Force

Do not ask for confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.Azure.Management.NotificationHubs.Models.ResourceListKeys