CmdID / az / az eventhubs / az eventhubs eventhub / az eventhubs eventhub authorization-rule / az eventhubs eventhub authorization-rule keys
az eventhubs eventhub authorization-rule keys renew
Regenerates the ACS and SAS connection strings for the Event Hub. Azure CLI reference
1 example 5 options Its page in the Azure CLI reference
Examples
Regenerate the connection strings of Authorizationrule for the namespace.
az eventhubs eventhub authorization-rule keys renew --resource-group myresourcegroup --namespace-name mynamespace --eventhub-name myeventhub --name myauthorule --key PrimaryKeyIdentify--resource-groupName of resource group.--namespace-nameThe Namespace name--eventhub-nameThe Event Hub name--nameThe authorization rule name.--keyThe access key to regenerate.Options
--authorization-rule-name, --nameThe authorization rule name.--eventhub-nameThe Event Hub name--key-valueOptional, if the key value provided, is set for KeyType or autogenerated Key value set for keyType--keyThe access key to regenerate.--namespace-nameThe Namespace name