Hey Everyone,
Brand new to PowerCLI and had a task I would like some help with
I need to clone a template from Content library to a virtual data center(VDC) folders in vcenter.
VDC folders in format ( /London/test_11/test_12")
Thanks for the help!
Hello.
Tell me a little more.
Do you want to import a template into a Org catalog?
Or just put the template as a vm in a folder in vCenter?
Maybe this can give you a start:
$myVMHost = Get-VMHost myVMHost
$myFolder = Get-Folder -Name "MyFolder1"
$myDs = Get-Datastore -Name "MyDatastore1"
Get-ContentLibraryItem –Name MyVMContentLibrayTempalteName | New-Template -Name "MyTemplate" -Datastore $myDs -Location $myFolder -VMHost $myVMHost