Sample Exchange

 View Only

PowerCLI Script to create a VM in VCD using a Template 

Oct 03, 2016 04:08 PM

This script can be used to create a VM in the VCloud using an existing Template in a VCD org.

Tips to run the script

1.No need to setup the Powercli Environment if already done

2.Provide the server details and login creditials to connect to the CI server

3.Check that the .csv info file is in the correct location. A Sample .csv file is as follows :

   OrgName      TemplateName         VMName             ComputerName

Borathon-Org windows_7_64_Custom windows_7_64_Custom-3 Windows764C-3

Tips to run the script
 
1.No need to setup the Powercli Environment if already done
2.Provide the server details and login creditials to connect to the CI server
3.Check that the .csv info file is in the correct location. A Sample .csv file is as follows :
   OrgName      TemplateName         VMName             ComputerName
Borathon-Org windows_7_64_Custom windows_7_64_Custom-3 Windows764C-3

#powercli
#vcd
#VM
#MIT
#vCloud
#PowerShell
#vCloudDirectorPowerCLI

Statistics
0 Favorited
2 Views
1 Files
0 Shares
1 Downloads
Attachment(s)
ps1 file
PowerCLI-Script-to-create-a-VM-in-VCD-using-a-Template.ps1   1 KB   1 version
Uploaded - Apr 09, 2024

Tags and Keywords

Comments

Dec 27, 2021 12:50 PM

Hi there!
This script is needed a preconfigured CIVApp that is getting by Get-CIVApp.
But there in not described how to create and configure this CIVApp.

Related Entries and Links

No Related Resource entered.