Share via


az servicebus namespace network-rule-set virtual-network-rule

Manage Azure ServiceBus subnet-rule in networkruleSet for namespace.

Commands

Name Description Type Status
az servicebus namespace network-rule-set virtual-network-rule add

Add a Virtual-Network-Rule for network rule of namespace.

Core GA
az servicebus namespace network-rule-set virtual-network-rule remove

Remove network rule for a namespace.

Core GA

az servicebus namespace network-rule-set virtual-network-rule add

Add a Virtual-Network-Rule for network rule of namespace.

az servicebus namespace network-rule-set virtual-network-rule add --namespace-name
                                                                  --resource-group
                                                                  [--subnet]

Examples

add a VirtualNetwork rule in NetworkruleSet for a namespace

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

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

--subnet

List VirtualNetwork Rules.

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 network-rule-set virtual-network-rule remove

Remove network rule for a namespace.

az servicebus namespace network-rule-set virtual-network-rule remove --namespace-name
                                                                     --resource-group
                                                                     [--subnet]

Examples

remove VirtualNetwork rule from NetworkruleSet of namespace

az servicebus namespace network-rule-set virtual-network-rule remove --resource-group myresourcegroup --namespace-name mynamespace --subnet id=/subscriptions/{subscriptionId}/resourceGroups/{resourcegroup}/providers/Microsoft.Network/virtualNetworks/{vnetname}/subnets/{subnetname}

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

--subnet

List VirtualNetwork Rules.

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.