I have been assigning vLANs (the same network adapter) when I deploy multiple vms and it has worked sucessfully.. My issue now is I have been given vms to deploy with the same specs but different vlans. Is there a way via powercli or csv to have these 10+ vlans assigned via script when deploying my vms? Below is what i've currently been using.. Any help would be greatly appreciated.
Get-VM $VM_Name | Get-NetworkAdapter | Set-NetworkAdapter -NetworkName Test_0207 -Confirm:$false
}