שתף באמצעות


az vmss nic

Manage network interfaces of a VMSS.

Commands

Name Description Type Status
az vmss nic list

Get all network interfaces in a virtual machine scale set.

Core GA
az vmss nic list-vm-nics

Get information about all network interfaces in a virtual machine in a virtual machine scale set.

Core GA
az vmss nic show

Get the specified network interface in a virtual machine scale set.

Core GA

az vmss nic list

Get all network interfaces in a virtual machine scale set.

This command is Uniform-specific and will not work for Flexible VMSS. If you want to get information about Flexible VMSS, please use "az network nic" command instead.

az vmss nic list --resource-group
                 --virtual-machine-scale-set-name
                 [--max-items]
                 [--next-token]

Required Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--virtual-machine-scale-set-name --vmss-name

Scale set name. You can configure the default using az configure --defaults vmss=<name>.

Optional Parameters

--max-items

Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token argument of a subsequent command.

--next-token

Token to specify where to start paginating. This is the token value from a previously truncated response.

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 vmss nic list-vm-nics

Get information about all network interfaces in a virtual machine in a virtual machine scale set.

This command is Uniform-specific and will not work for Flexible VMSS. If you want to get information about Flexible VMSS, please use "az network nic" command instead.

az vmss nic list-vm-nics --instance-id
                         --resource-group
                         --virtual-machine-scale-set-name
                         [--max-items]
                         [--next-token]

Required Parameters

--instance-id --virtualmachine-index

The virtual machine index.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--virtual-machine-scale-set-name --vmss-name

Scale set name.

Optional Parameters

--max-items

Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token argument of a subsequent command.

--next-token

Token to specify where to start paginating. This is the token value from a previously truncated response.

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 vmss nic show

Get the specified network interface in a virtual machine scale set.

This command is Uniform-specific and will not work for Flexible VMSS. If you want to get information about Flexible VMSS, please use "az network nic" command instead.

az vmss nic show [--expand]
                 [--ids]
                 [--instance-id]
                 [--name]
                 [--resource-group]
                 [--subscription]
                 [--virtual-machine-scale-set-name]

Optional Parameters

--expand

Expands referenced resources. Default value is None.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--instance-id --virtualmachine-index

The virtual machine index.

--name --network-interface-name -n

The network interface (NIC).

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--virtual-machine-scale-set-name --vmss-name

Scale set name.

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.