我试图从我现有的VHD文件在MS Azure plaftorm上创build一个虚拟机。 当我试图,我得到以下错误。 有没有指定网卡的参数? 在网上做了一些研究,没有得到合适的结果。
PS C:\Users\Rav> azure vm create --os-disk-vhd https://group11492.blob.core.windows.net/vhds/Integration201641775831.vhd info: Executing command vm create Resource group name: Default-Storage-WestUS Virtual machine name: integration201641775831v Location name: West US Operating system Type: Linux + Looking up the VM "integration201641775831v" info: Using the VM Size "Standard_DS1" error: Either NIC Id or NIC name is required info: Error information has been recorded to C:\Users\Rav\.azure\azure.err error: vm create command failed
是,
…
-I, --nic-ids <nic-ids> the list of NIC identifiers separated by comma. In case of specifying multiple nics first one will be set as primary. -N, --nic-names <nic-names> the list of NIC names separated by comma. In case of specifying multiple nics first one will be set as primary.These NICs must exists in the same resource group as the VM. Please use nic-ids if that not the case. This parameter will be ignored if --nic-ids is specified
…
如果你没有看到这些参数,你可能想要更新你的azure色的cli。