az servicebus namespace network-rule

Manage Azure ServiceBus networkruleSet for namespace.

Commands

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 network-rule add

Add a network rule for a namespace.

az servicebus namespace network-rule add --namespace-name
                                         --resource-group
                                         [--action {Allow}]
                                         [--ignore-missing-endpoint {false, true}]
                                         [--ip-address]
                                         [--subnet]
                                         [--subscription]
                                         [--vnet-name]

Examples

add a VirtualNetwork rule in NetworkruleSet for a namespace

az servicebus namespace network-rule add --resource-group myresourcegroup --namespace-name mynamespace --subnet {subnetId} --ignore-missing-endpoint True

add a IP rule in NetworkruleSet for a namespace

az servicebus namespace network-rule add --resource-group myresourcegroup --namespace-name mynamespace --ip-address 10.0.0.0/24 --action Allow

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

--action

Action of the IP rule.

accepted values: Allow
default value: Allow
--ignore-missing-endpoint

A boolean value that indicates whether to ignore missing vnet Service Endpoint.

accepted values: false, true
--ip-address

IPv4 address or CIDR range.

--subnet

Name or ID of subnet. If name is supplied, --vnet-name must be supplied.

--subscription

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

--vnet-name

Name of the Virtual Network.

az servicebus namespace network-rule list

Show properties of Network rule of the given Namespace.

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

Examples

Show properties of Network rule of the given Namespace

az servicebus namespace network-rule list --resource-group myresourcegroup --namespace-name mynamespace

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

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

--subscription

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

az servicebus namespace network-rule remove

Remove network rule for a namespace.

az servicebus namespace network-rule remove --namespace-name
                                            --resource-group
                                            [--ip-address]
                                            [--subnet]
                                            [--subscription]
                                            [--vnet-name]

Examples

remove VirtualNetwork rule from NetworkruleSet for a namespace

az servicebus namespace network-rule remove --resource-group myresourcegroup --namespace-name mynamespace --subnet {subnetId}

remove IP rule from NetworkruleSet for a namespace

az servicebus namespace network-rule remove --resource-group myresourcegroup --namespace-name mynamespace --ip-address 10.0.0.0/24

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

--ip-address

IPv4 address or CIDR range.

--subnet

Name or ID of subnet. If name is supplied, --vnet-name must be supplied.

--subscription

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

--vnet-name

Name of the Virtual Network.