I'm working on automating mass-cloning of a virtual machine from a template for testing purposes. Currently, the only network-related stuff my code creates is an adaptermap to a new static ip address for the cloned virtual machine. I've been looking through the docs, but can't quite seem to figure out how to add it to a VLAN on a switch. My current thought process is that the VirtualEthernetCardDistributedVirtualPortBackingInfo has to be updated in the ConfigSpec used for cloning, but I'm not quite sure what info should be changed, or to propagate it back to the server. Any help would be appreciated.
I'm working on automating mass-cloning of a virtual machine from a template for testing purposes. Currently, the only network-related stuff my code creates is an adaptermap to a new static ip address for the cloned virtual machine. I've been looking through the docs, but can't quite seem to figure out how to add it to a VLAN on a switch. My current thought process is that the VirtualEthernetCardDistributedVirtualPortBackingInfo has to be updated in the ConfigSpec used for cloning, but I'm not quite sure what info should be changed, or to propagate it back to the server. Any help would be appreciated.