VMware Cloud Community
tdubb123
Expert
Expert

migrating from dvs to vds - import-csv

trying to migrate from dvPG to SPG

got a csv like this

dvPG                              SPG

dvPG-vlan1                    vlan1

dvPG-vlan2                    vlan2

how do I set-networkadapter and change the VMs on a vmhost from

from the dvPG to sPG?

0 Kudos
6 Replies
tdubb123
Expert
Expert

maybe something like

import-csv "dvs.csv" -useculture | % {

get-vmhost vmhost | get-vm | get-networkadapter |  set-networkadapter -networkname $spg -confirm:$false

}

0 Kudos
daphnissov
Immortal
Immortal

BTW, vDS = dVS (in your thread title). They're the same thing, but vDS is the "correct" acronym.

0 Kudos
tdubb123
Expert
Expert

yes sorry.

0 Kudos
tdubb123
Expert
Expert

any idea how I can quickly change thevms from

dvpg-vlan1 to test-vpg-vlan1?

without csv?

0 Kudos
tdubb123
Expert
Expert

trying something like

get-vmhost vmhost | get-vm | get-networkadapter | set-networkadapter -networkname test-$networkname

0 Kudos
LucD
Leadership
Leadership

0 Kudos