az servicebus namespace

Manage Azure Service Bus Namespace.

Commands

az servicebus namespace authorization-rule

Manage Azure Service Bus Namespace Authorization Rule.

az servicebus namespace authorization-rule create

Create Authorization Rule for the given Service Bus Namespace.

az servicebus namespace authorization-rule delete

Deletes the Authorization Rule of the Service Bus Namespace.

az servicebus namespace authorization-rule keys

Manage Azure Authorization Rule connection strings for Namespace.

az servicebus namespace authorization-rule keys list

List the keys and connection strings of Authorization Rule for Service Bus Namespace.

az servicebus namespace authorization-rule keys renew

Regenerate keys of Authorization Rule for the Service Bus Namespace.

az servicebus namespace authorization-rule list

Shows the list of Authorization Rule by Service Bus Namespace.

az servicebus namespace authorization-rule show

Shows the details of Service Bus Namespace Authorization Rule.

az servicebus namespace authorization-rule update

Updates Authorization Rule for the given Service Bus Namespace.

az servicebus namespace create

Create a Service Bus Namespace.

az servicebus namespace delete

Deletes the Service Bus Namespace.

az servicebus namespace exists

Check for the availability of the given name for the Namespace.

az servicebus namespace list

List the Service Bus Namespaces.

az servicebus namespace network-rule

Manage Azure ServiceBus networkruleSet for namespace.

az servicebus namespace network-rule add

Add a network rule for a namespace.

az servicebus namespace network-rule list

Show properties of Network rule of the given Namespace.

az servicebus namespace network-rule remove

Remove network rule for a namespace.

az servicebus namespace show

Shows the Service Bus Namespace details.

az servicebus namespace update

Updates a Service Bus Namespace.

az servicebus namespace create

Create a Service Bus Namespace.

az servicebus namespace create --name
                               --resource-group
                               [--capacity {1, 2, 4, 8}]
                               [--default-action]
                               [--location]
                               [--sku {Basic, Premium, Standard}]
                               [--subscription]
                               [--tags]

Examples

Create a Service Bus Namespace.

az servicebus namespace create --resource-group myresourcegroup --name mynamespace --location westus --tags tag1=value1 tag2=value2 --sku Standard

Required Parameters

--name -n

Name of Namespace.

--resource-group -g

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

Optional Parameters

--capacity

Number of message units. This property is only applicable to namespaces of Premium SKU.

accepted values: 1, 2, 4, 8
--default-action

Default action for network rule set.

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--sku

Namespace SKU.

accepted values: Basic, Premium, Standard
default value: Standard
--subscription

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

--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.

az servicebus namespace delete

Deletes the Service Bus Namespace.

az servicebus namespace delete [--ids]
                               [--name]
                               [--resource-group]
                               [--subscription]

Examples

Deletes the Service Bus Namespace

az servicebus namespace delete --resource-group myresourcegroup --name mynamespace

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

Name of Namespace.

--resource-group -g

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

--subscription

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

az servicebus namespace exists

Check for the availability of the given name for the Namespace.

az servicebus namespace exists --name
                               [--subscription]

Examples

check for the availability of mynamespace for the Namespace

az servicebus namespace exists --name mynamespace

Required Parameters

--name -n

Namespace name. Name can contain only letters, numbers, and hyphens. The namespace must start with a letter, and it must end with a letter or number.

Optional Parameters

--subscription

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

az servicebus namespace list

List the Service Bus Namespaces.

az servicebus namespace list [--query-examples]
                             [--resource-group]
                             [--subscription]

Examples

Get the Service Bus Namespaces by resource group

az servicebus namespace list --resource-group myresourcegroup

Get the Service Bus Namespaces by Subscription.

az servicebus namespace list

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--resource-group -g

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

--subscription

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

az servicebus namespace show

Shows the Service Bus Namespace details.

az servicebus namespace show [--ids]
                             [--name]
                             [--query-examples]
                             [--resource-group]
                             [--subscription]

Examples

shows the Namespace details.

az servicebus namespace show --resource-group myresourcegroup --name mynamespace

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

Name of Namespace.

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--resource-group -g

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

--subscription

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

az servicebus namespace update

Updates a Service Bus Namespace.

az servicebus namespace update [--add]
                               [--capacity {1, 2, 4, 8}]
                               [--default-action]
                               [--force-string]
                               [--ids]
                               [--name]
                               [--remove]
                               [--resource-group]
                               [--set]
                               [--sku {Basic, Premium, Standard}]
                               [--subscription]
                               [--tags]

Examples

Updates a Service Bus Namespace.

az servicebus namespace update --resource-group myresourcegroup --name mynamespace --tags tag=value

Updates a Service Bus Namespace (autogenerated)

az servicebus namespace update --name mynamespace --resource-group myresourcegroup --sku Basic

Optional Parameters

--add

Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.

--capacity

Number of message units. This property is only applicable to namespaces of Premium SKU.

accepted values: 1, 2, 4, 8
--default-action

Default action for network rule set.

--force-string

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

Name of Namespace.

--remove

Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.

--resource-group -g

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

--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=.

--sku

Namespace SKU.

accepted values: Basic, Premium, Standard
--subscription

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

--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.