Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 178097

Assigning Multiple vlans when deploying Powercli Script

$
0
0

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

}


Viewing all articles
Browse latest Browse all 178097


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>