Share via


az eventhubs namespace identity

Manage eventhubs namespace identity.

Commands

Name Description Type Status
az eventhubs namespace identity assign

Assign System or User or System,User assigned identities to a namespace.

Core GA
az eventhubs namespace identity remove

Remove System or User or System,User assigned identities from a namespace.

Core GA

az eventhubs namespace identity assign

Assign System or User or System,User assigned identities to a namespace.

az eventhubs namespace identity assign --namespace-name
                                       --resource-group
                                       [--system-assigned {false, true}]
                                       [--user-assigned]

Examples

Assign system assigned and user assigned identity to a namespace. (give a list of identity id's for --user-assigned)

az eventhubs namespace identity assign --namespace-name mynamespace -g MyResourceGroup --system-assigned --user-assigned /subscriptions/{subscriptionId}}/resourceGroups/{resourcegroup}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MSIName /subscriptions/{subscriptionId}}/resourceGroups/{resourcegroup}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MSIName2

Required Parameters

--namespace-name

Name of the Namespace.

--resource-group -g

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

Optional Parameters

--system-assigned

System Assigned Identity.

Accepted values: false, true
--user-assigned

User Assigned Identity.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az eventhubs namespace identity remove

Remove System or User or System,User assigned identities from a namespace.

az eventhubs namespace identity remove --namespace-name
                                       --resource-group
                                       [--system-assigned {false, true}]
                                       [--user-assigned]

Examples

Remove system assigned and a user assigned identity from a namespace. (give a list of identity id's for --user-assigned)

az eventhubs namespace identity remove --namespace-name mynamespace -g MyResourceGroup --system-assigned --user-assigned /subscriptions/{subscriptionId}}/resourceGroups/{resourcegroup}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MSIName

Required Parameters

--namespace-name

Name of the Namespace.

--resource-group -g

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

Optional Parameters

--system-assigned

System Assigned Identity.

Accepted values: false, true
--user-assigned

User Assigned Identity.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.