共用方式為


az connectedvmware vm nic

Note

This reference is part of the connectedvmware extension for the Azure CLI (version 2.0.67 or higher). 當您第一次執行 az connectedvmware vm nic 命令時,擴充功能會自動安裝。 Learn more about extensions.

Vm nic.

命令

名稱 Description 類型 狀態
az connectedvmware vm nic add

將虛擬 nic 新增至虛擬機。

Extension GA
az connectedvmware vm nic delete

將虛擬 nic 刪除至虛擬機。

Extension GA
az connectedvmware vm nic list

從指定的資源組名和 VM 名稱擷取 vm nic 清單。

Extension GA
az connectedvmware vm nic show

依 vm nic 的名稱、資源群組和 VM 名稱取得詳細數據。

Extension GA
az connectedvmware vm nic update

更新虛擬機的虛擬網路介面。

Extension GA

az connectedvmware vm nic add

將虛擬 nic 新增至虛擬機。

az connectedvmware vm nic add --name
                              --network
                              --resource-group
                              --vm-name
                              [--nic-type]
                              [--no-wait]
                              [--power-on-boot]

範例

將虛擬 nic 新增至虛擬機

az connectedvmware vm nic add --name "Name of the NIC" --network "Network Name or Id"                --resource-group "resource group name" --vm-name "Name of the virtual machine"

必要參數

--name -n

NIC 的名稱。

--network

虛擬網路的名稱或識別碼。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

--vm-name

虛擬機器的名稱。

選擇性參數

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

--nic-type

NIC 的 nic 類型。

屬性
預設值: VMXNET3
--no-wait

請勿等候長時間執行的作業完成。

屬性
預設值: False
--power-on-boot

nic 的開機選項。

屬性
預設值: DISABLED
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

屬性
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az connectedvmware vm nic delete

將虛擬 nic 刪除至虛擬機。

az connectedvmware vm nic delete --nics
                                 --resource-group
                                 --vm-name
                                 [--no-wait]
                                 [--yes]

範例

將虛擬 nic 刪除至虛擬機

az connectedvmware vm nic delete --nics "Names of the NICs" --resource-group                "resource group name" --vm-name "Name of the virtual machine"

必要參數

--nics

NIC 的名稱。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

--vm-name

虛擬機器的名稱。

選擇性參數

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

--no-wait

請勿等候長時間執行的作業完成。

屬性
預設值: False
--yes -y

請勿提示確認。

屬性
預設值: False
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

屬性
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az connectedvmware vm nic list

從指定的資源組名和 VM 名稱擷取 vm nic 清單。

az connectedvmware vm nic list --resource-group
                               --vm-name

範例

擷取 vm nic 的清單

az connectedvmware vm nic list --resource-group "resource group name" --vm-name                "Name of the virtual machine"

必要參數

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

--vm-name

虛擬機器的名稱。

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

屬性
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az connectedvmware vm nic show

依 vm nic 的名稱、資源群組和 VM 名稱取得詳細數據。

az connectedvmware vm nic show --name
                               --resource-group
                               --vm-name

範例

取得 vm nic 的詳細數據

az connectedvmware vm nic show --name "Name of the NIC" --resource-group                "resource group name" --vm-name "Name of the virtual machine"

必要參數

--name -n

NIC 的名稱。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

--vm-name

虛擬機器的名稱。

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

屬性
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az connectedvmware vm nic update

更新虛擬機的虛擬網路介面。

az connectedvmware vm nic update --resource-group
                                 --vm-name
                                 [--device-key]
                                 [--name]
                                 [--network]
                                 [--no-wait]
                                 [--power-on-boot]

必要參數

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

--vm-name

虛擬機器的名稱。

選擇性參數

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

--device-key

nic 的裝置金鑰。

--name -n

NIC 的名稱。

--network

虛擬網路的名稱或識別碼。

--no-wait

請勿等候長時間執行的作業完成。

屬性
預設值: False
--power-on-boot

nic 的開機選項。

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

屬性
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False