How do you implement New-VM from content library template without pipeline?
I am tring to find the equivalent without pipeline to the following command.
Get-ContentLibraryItem –Name MyVMContentLibrayItemName | New-VM –Name MyVM –VMHost $myVMHost
Get-ContentLibraryItem returns type
VMware.VimAutomation.ViCore.Impl.V1.ContentLibrary.ContentLibraryItemImpl
and there is no parameter which takes it in Get-VM,
according to
New-VM - vSphere PowerCLI Cmdlets Reference
My first guess was the -Template but the type is
VMware.VimAutomation.ViCore.Types.V1.Inventory.Template"
any suggestions?
regards,
Nir.