Share via


az batch account network-profile network-rule

Manage Batch account Network rules in Network Profile.

Commands

Name Description Type Status
az batch account network-profile network-rule add

Add a Network rule from a Network Profile.

Core GA
az batch account network-profile network-rule delete

Delete a Network rule from a Network Profile.

Core GA
az batch account network-profile network-rule list

List the Network rules from a Network Profile.

Core GA

az batch account network-profile network-rule add

Add a Network rule from a Network Profile.

az batch account network-profile network-rule add --resource-group
                                                  [--ip-address]
                                                  [--name]
                                                  [--profile {BatchAccount, NodeManagement}]

Examples

Add ip address to BatchAccount network rule

az batch account network-profile network-rule add -g MyResourceGroup -n MyBatchAccount --profile BatchAccount --ip-address 1.2.3.4

Required Parameters

--resource-group -g

Name of the resource group. If not specified will display currently set account.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--ip-address

IPv4 address or CIDR range.

--name -n

Name of the batch account to show. If not specified will display currently set account.

--profile

Network profile to set.

Property Value
Accepted values: BatchAccount, NodeManagement
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--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.

Property Value
Default value: False

az batch account network-profile network-rule delete

Delete a Network rule from a Network Profile.

az batch account network-profile network-rule delete --resource-group
                                                     [--ip-address]
                                                     [--name]
                                                     [--profile {BatchAccount, NodeManagement}]
                                                     [--yes]

Examples

Delete ip address from BatchAccount network rule

az batch account network-profile network-rule delete -g MyResourceGroup -n MyBatchAccount --profile BatchAccount --ip-address 1.2.3.4

Required Parameters

--resource-group -g

Name of the resource group. If not specified will display currently set account.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--ip-address

IPv4 address or CIDR range.

--name -n

Name of the batch account to show. If not specified will display currently set account.

--profile

Network profile to set.

Property Value
Accepted values: BatchAccount, NodeManagement
--yes -y

Do not prompt for confirmation.

Property Value
Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--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.

Property Value
Default value: False

az batch account network-profile network-rule list

List the Network rules from a Network Profile.

az batch account network-profile network-rule list --resource-group
                                                   [--name]

Examples

List the Batch Accounts network profile

az batch account network-profile network-rule list -g MyResourceGroup -n MyBatchAccount

Required Parameters

--resource-group -g

Name of the resource group. If not specified will display currently set account.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--name -n

Name of the batch account to show. If not specified will display currently set account.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--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.

Property Value
Default value: False