az servicebus namespace identity
Manage servicebus namespace identity.
Commands
Name | Description | Type | Status |
---|---|---|---|
az servicebus namespace identity assign |
Assign System or User or System, User assigned identities to a namespace. |
Core | GA |
az servicebus namespace identity remove |
Removes System or User or System, User assigned identities from a namespace. |
Core | GA |
az servicebus namespace identity assign
Assign System or User or System, User assigned identities to a namespace.
az servicebus 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 servicebus 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 servicebus namespace identity remove
Removes System or User or System, User assigned identities from a namespace.
az servicebus 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 servicebus 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.