Hello
Can anyone help me for setting up VLAN's for each VM's listed in CSV something like below
I have created 3 excel sheet where first column refer VMName, second refer network card 1, network card 2, third refers VLAN detail for each network card, so I want to change VLAN for each VM as per CSV
VMNAME NICName VLAN
VMName1 NIC1 VLAN ID
VMNAME1 NIC2 VLAN ID
VMNAME2 NIC1 VLANID
VMNAME2 NIC2 VLANID
VMNAME2 NIC3 VLANID
Not sure I'm understanding your request.
A VLANId is defined on a portgroup, and you can attach the vNIC on a VM to a portgroup.
But there is no direct way to specify a VLANId on a vNIC.
Do the portgroups correponding with the VLANIds already exist?
Do the portgroups need to created?
But that requires some more info, what should be the portgroup name, which vSwitch do the portgroups need to be defined on? ...
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
LucD
Hi Lucd
Thanks for reply and sorry for the making confusion, Yes I have respective portgroup for each VM in csv format we need to attach NIC1, NIC2 etc to respective portgroup on each VM
this is Distribution switch and its virtual machine port group
it would be good if you provide me script today as there is migration is going on..
Hello
can you please help me with script?
thanks
Can you tell me what you have in the CSV file?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference