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
Name of the Namespace.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
System Assigned Identity.
User Assigned Identity.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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
Name of the Namespace.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
System Assigned Identity.
User Assigned Identity.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.