Share via


az eventhubs namespace network-rule-set virtual-network-rule

Manage Azure eventhubs subnet-rule in networkruleSet for namespace.

Commands

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

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

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

Remove network rule for a namespace.

Core GA

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

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

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

Examples

add a VirtualNetwork rule in NetworkruleSet for a namespace

az eventhubs namespace network-rule-set virtual-network-rule add --resource-group myresourcegroup --namespace-name mynamespace --subnet id=/subscriptions/{subscriptionId}/resourceGroups/{resourcegroup}/providers/Microsoft.Network/virtualNetworks/{vnetname}/subnets/{subnetname} ignore-missing-endpoint=True

Required Parameters

--name --namespace-name -n

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

Remove network rule for a namespace.

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

Examples

remove VirtualNetwork rule from NetworkruleSet of namespace

az eventhubs 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

--name --namespace-name -n

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.