Share via


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

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

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