az eventhubs eventhub authorization-rule keys

Manage Azure Authorizationrule connection strings for Eventhub.

Commands

az eventhubs eventhub authorization-rule keys list Shows the connection strings of Authorizationrule for the Eventhub.
az eventhubs eventhub authorization-rule keys renew Regenerate the connection strings of Authorizationrule for the namespace.

az eventhubs eventhub authorization-rule keys list

Shows the connection strings of Authorizationrule for the Eventhub.

az eventhubs eventhub authorization-rule keys list --eventhub-name
--name
--namespace-name
--resource-group
[--subscription]

Examples

Shows the connection strings of Authorizationrule for the eventhub.

az eventhubs eventhub authorization-rule keys list --resource-group myresourcegroup --namespace-name mynamespace --eventhub-name myeventhub --name myauthorule

Required Parameters

--eventhub-name

Name of EventHub.

--name -n

Name of EventHub AuthorizationRule.

--namespace-name

Name of Namespace.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az eventhubs eventhub authorization-rule keys renew

Regenerate the connection strings of Authorizationrule for the namespace.

az eventhubs eventhub authorization-rule keys renew --key {PrimaryKey, SecondaryKey}
[--eventhub-name]
[--ids]
[--key-value]
[--name]
[--namespace-name]
[--resource-group]
[--subscription]

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 PrimaryKey

Required Parameters

--key

Specifies Primary or Secondary key needs to be reset.

accepted values: PrimaryKey, SecondaryKey

Optional Parameters

--eventhub-name

Name of EventHub.

--ids

One or more resource IDs (space-delimited). If provided, no other 'Resource Id' arguments should be specified.

--key-value

Optional, if the key value provided, is set for KeyType or autogenerated Key value set for keyType.

--name -n

Name of EventHub AuthorizationRule.

--namespace-name

Name of Namespace.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.