VMware Cloud Community
nmbgdc
Enthusiast
Enthusiast

Add host using Powercli

Hello Guys,

Hope you are doing well !!

I am automating the VMware Esxi configuration and stuck and one place and here are the scenario-

I have 5 Nics on my Esxi Node and out of five one is 1G & 4 are 10G.

Host is added in vCenter using 1G NIcs  with default vmk0.

Now I have create two DVS Switch on vcenter DVS-1 & DVS-2, where i want to add two pNics on each DVS as uplink..

does any one has any powercli to do this task?

Thanks

0 Kudos
2 Replies
a_p_
Leadership
Leadership

Discussion moved from Forums to VMware PowerCLI

0 Kudos
LucD
Leadership
Leadership

You can use the Add-VDSwitchPhysicalNetworkAdapter cmdlet for that.
Have a look at Example 1.

Moderator Note (a.p.): Fixed link to the cmdlet


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos