Original Message:
Sent: Aug 09, 2024 01:01 PM
From: iDIGIT
Subject: VM Deployment using VM template in Content Library
LucD, I think I am using the same . Here the output of Get-ContentLibraryItem. Still am I missing something ?
PS C:\WINDOWS\system32> Get-ContentLibraryItem
Name ContentLibrary ItemType SizeGB
---- -------------- -------- ------
Windows22-app QTS Content Library vm-template 31.864
Windows22-database QTS Content Library vm-template 32.397
Windows19-app QTS Content Library vm-template 29.003
Windows19-database QTS Content Library vm-template 31.992
Original Message:
Sent: Aug 09, 2024 10:45 AM
From: LucD
Subject: VM Deployment using VM template in Content Library
Instead of the Name use the object returned by Get-ContentLibraryItem on the ContentLibraryItem parameter
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Original Message:
Sent: Aug 09, 2024 09:45 AM
From: iDIGIT
Subject: VM Deployment using VM template in Content Library
I am trying to deploy VMs using following script. Getting an error "A specified parameter was not correct: Specified library item is not an OVF"
$vmname = "win-2022-db-clinic1"
$ResourcePool = "DB Cluster1 Low"
$contentLibraryItem = "Windows22-database" #Name of VM template from the output of "Get-ContentLibraryItem"
$datastore = "PowerMax_DB"
New-VM -Name $vmname -ResourcePool $ResourcePool -ContentLibraryItem $contentLibraryItem -Datastore $datastore
Advise me!