az eventhubs eventhub authorization-rule

Manage Azure Service Bus Authorizationrule for Eventhub.

Commands

az eventhubs eventhub authorization-rule create Creates Authorizationrule for the given Eventhub.
az eventhubs eventhub authorization-rule delete Deletes the Authorizationrule of Eventhub.
az eventhubs eventhub authorization-rule keys Manage Azure Authorizationrule connection strings for Eventhub.
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 list Shows the list of Authorization-rules by Eventhub.
az eventhubs eventhub authorization-rule show Shows the details of Authorizationrule.
az eventhubs eventhub authorization-rule update Updates Authorizationrule for the given Eventhub.

az eventhubs eventhub authorization-rule create

Creates Authorizationrule for the given Eventhub.

az eventhubs eventhub authorization-rule create --eventhub-name
--name
--namespace-name
--resource-group
--rights {Listen, Manage, Send}
[--subscription]

Examples

Creates Authorizationrule

az eventhubs eventhub authorization-rule create --resource-group myresourcegroup --namespace-name mynamespace --eventhub-name myeventhub --name myauthorule --rights Listen

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>.

--rights

Space-separated list of Authorization rule rights.

accepted values: Listen, Manage, Send

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 delete

Deletes the Authorizationrule of Eventhub.

az eventhubs eventhub authorization-rule delete [--eventhub-name]
[--ids]
[--name]
[--namespace-name]
[--resource-group]
[--subscription]

Examples

Deletes the Authorizationrule of Eventhub.

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

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.

--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.

az eventhubs eventhub authorization-rule list

Shows the list of Authorization-rules by Eventhub.

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

Examples

shows the list of Authorization-rules by Eventhub

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

Required Parameters

--eventhub-name

Name of EventHub.

--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 show

Shows the details of Authorizationrule.

az eventhubs eventhub authorization-rule show [--eventhub-name]
[--ids]
[--name]
[--namespace-name]
[--resource-group]
[--subscription]

Examples

shows the details of Authorizationrule

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

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.

--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.

az eventhubs eventhub authorization-rule update

Updates Authorizationrule for the given Eventhub.

az eventhubs eventhub authorization-rule update --rights {Listen, Manage, Send}
[--add]
[--eventhub-name]
[--force-string]
[--ids]
[--name]
[--namespace-name]
[--remove]
[--resource-group]
[--set]
[--subscription]

Examples

Updates Authorizationrule

az eventhubs eventhub authorization-rule update --resource-group myresourcegroup --namespace-name mynamespace --eventhub-name myeventhub --name myauthorule --rights Send

Required Parameters

--rights

Space-separated list of Authorization rule rights.

accepted values: Listen, Manage, Send

Optional Parameters

--add

Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.

--eventhub-name

Name of EventHub.

--force-string

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

--ids

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

--name -n

Name of EventHub AuthorizationRule.

--namespace-name

Name of Namespace.

--remove

Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.

--resource-group -g

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

--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=.

--subscription

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