VMware

PowerCLI Automate multiple Virtual Machines Creation in

PowerCLI Automate multiple Virtual Machines Creation in vCenter using CSV file

#PowerCLI #Automate #multiple #Virtual #Machines #Creation

“Swapnil Infotech”

In This Video, you will learn how to automate multiple Virtual Machine build. We are using CSV file to give input for PowerShell script and whatever information you have used in *csv file, it will be used to build the VM’s.

You can use below script and let me know if you are facing any…

source

 

To see the full content, share this page by clicking one of the buttons below

Related Articles

7 Comments

  1. Hi Swapnil
    Good Day,
    While executing the script we are receiving the below error.
    Get-Template : Cannot validate argument on parameter 'Name'. The argument is null or empty. Provide an argument that is not null or empty, and then
    try the command again.
    for everything should I do some thing with CSV file ?
    Please advice

  2. Hello Brother, I have vSAN datastore and storage format applied thru storage policy for vSAN datastore. How do we change -StorageFormat by default vSAN storage policy instead of Thin provisioning

    #Deploying the VM
    New-VM -Name $VMName -Template $Template -ResourcePool (Get-Cluster $Cluster | Get-ResourcePool) -location $location -StorageFormat Thin -Datastore $Datastore -OSCustomizationSpec $Custom
    Start-Sleep -Seconds 10

  3. I tried using your script but i keep on getting this feedback

    Import-CSV : The member "Name" is already present.

    At line:2 char:8

    + $vms = Import-CSV "E:VMList.CSV"

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo : NotSpecified: (:) [Import-Csv], ExtendedTypeSystemEx

    ception

    + FullyQualifiedErrorId : AlreadyPresentPSMemberInfoInternalCollectionAdd,Micr

    osoft.PowerShell.Commands.ImportCsvCommand

Leave a Reply