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
Name of the Namespace.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Action of the IP rule.
A boolean value that indicates whether to ignore missing vnet Service Endpoint.
IPv4 address or CIDR range.
Name or ID of subnet. If name is supplied, --vnet-name
must be supplied.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Name of the Virtual Network.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
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
Name of the Namespace.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
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.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
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
Name of the Namespace.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
IPv4 address or CIDR range.
Name or ID of subnet. If name is supplied, --vnet-name
must be supplied.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Name of the Virtual Network.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.