VMware Cloud Community
aravinds3107
Virtuoso
Virtuoso

Move VM's from Standard Switch to Distrbuted Swith Port group

I am looking for a script to move VM's from to Standard Switch to Distrubuted Switch Port group, Is this possible to perform this using Power CLI?

I tried get-Netwokadapter and Set-NetworkAdapters cmdlets but it gives network name not found, i beleive these cmdlets work only with vSS

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful |Blog: http://aravindsivaraman.com/ | Twitter : ss_aravind
0 Kudos
1 Reply
LucD
Leadership
Leadership

That is possible but you will need to provide a free portkey.

See my dvSwitch scripting – Part 12 – Find free ports post.


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

0 Kudos