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
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
System Assigned Identity.
Property | Value |
---|---|
Accepted values: | false, true |
User Assigned Identity.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
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
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
System Assigned Identity.
Property | Value |
---|---|
Accepted values: | false, true |
User Assigned Identity.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |