CmdID / az / az notification-hub / az notification-hub authorization-rule
az notification-hub authorization-rule regenerate-keys
Regenerates the primary/secondary keys to the notification hub authorization rule. Azure CLI extensions reference
1 example 4 options Its page in the Azure CLI extensions reference
Examples
Regenerate the notification hub authorization rule
az notification-hub authorization-rule regenerate-keys --resource-group MyResourceGroup --namespace-name my-namespace --notification-hub-name my-hub --name DefaultListenSharedAccessSignature --policy-key "Secondary Key"Identify--resource-groupName of resource group.--namespace-nameThe namespace name.--notification-hub-nameThe notification hub name.--nameThe connection string of the NotificationHub for the specified authorizationRule.--policy-keyName of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule.Options
--name, -nThe connection string of the NotificationHub for the specified authorizationRule.--namespace-nameThe namespace name.--notification-hub-nameThe notification hub name.--policy-keyName of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule.