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"
必要參數
NIC 的名稱。
虛擬網路的名稱或識別碼。
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
虛擬機器的名稱。
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
NIC 的 nic 類型。
屬性 | 值 |
---|---|
預設值: | VMXNET3 |
請勿等候長時間執行的作業完成。
屬性 | 值 |
---|---|
預設值: | False |
nic 的開機選項。
屬性 | 值 |
---|---|
預設值: | DISABLED |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --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"
必要參數
NIC 的名稱。
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
虛擬機器的名稱。
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
請勿等候長時間執行的作業完成。
屬性 | 值 |
---|---|
預設值: | False |
請勿提示確認。
屬性 | 值 |
---|---|
預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --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"
必要參數
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
虛擬機器的名稱。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --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"
必要參數
NIC 的名稱。
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
虛擬機器的名稱。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --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]
必要參數
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
虛擬機器的名稱。
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
nic 的裝置金鑰。
NIC 的名稱。
虛擬網路的名稱或識別碼。
請勿等候長時間執行的作業完成。
屬性 | 值 |
---|---|
預設值: | False |
nic 的開機選項。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |