Hi all.
I would like to deploy Multiples VMs from csv using a template
I want to use the new-VM and accomplish is to read from a CSV file the following
Name( for the new VM), Template(to be use to create VM), CPU(for the new VM),mem(for the new VM),Disk(for the new vm)
can I use the
$file=Import-Csv -Path .\VMs2Deploy.csv
$DS="myDS"
$TemplateName="my template'
foreach ($rown in $file){
New-VM -Template $TemplateName -Name $_.Name -Datastore $DS -NumCPU $_.CPU -MemoryGB $_.mem -DiskGB $_.Disk
}