az eventhubs namespace network-rule

Manage Azure EventHubs networkruleset for namespace.

Commands

az eventhubs namespace network-rule add

Add a network rule for a namespace.

az eventhubs namespace network-rule list

Show properties of Network rule of the given Namespace.

az eventhubs namespace network-rule remove

Remove network rule for a namespace.

az eventhubs namespace network-rule add

Add a network rule for a namespace.

az eventhubs 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 eventhubs namespace network-rule add --resource-group myresourcegroup --namespace-name mynamespace --subnet /subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/Microsoft.Network/virtualNetworks/{virtualnetworkname}/subnets/{subnetname} --ignore-missing-endpoint True

add a IP rule in NetworkruleSet for a namespace

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

Add a network rule for a namespace. (autogenerated)

az eventhubs namespace network-rule add --action Allow --ignore-missing-endpoint true --namespace-name mynamespace --resource-group myresourcegroup --subnet /subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/Microsoft.Network/virtualNetworks/{virtualnetworkname}/subnets/{subnetname} --subscription MySubscription --vnet-name MyVnet

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 - 10.6.0.0/24.

--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 eventhubs namespace network-rule list

Show properties of Network rule of the given Namespace.

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

Examples

Show properties of Network rule of the given Namespace

az eventhubs 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 eventhubs namespace network-rule remove

Remove network rule for a namespace.

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

Examples

remove VirtualNetwork rule from NetworkruleSet for a namespace

az eventhubs namespace network-rule remove --resource-group myresourcegroup --namespace-name mynamespace --subnet /subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/Microsoft.Network/virtualNetworks/{virtualnetworkname}/subnets/{subnetname}

remove IP rule from NetworkruleSet for a namespace

az eventhubs namespace network-rule remove --resource-group myresourcegroup --namespace-name mynamespace --ip-address 10.6.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 - 10.6.0.0/24.

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