pamiller21
Enthusiast
Enthusiast

Upgrade powered off VM to newest hardware version

I am working on a script to deploy new VMs, and as one of the final steps I would like to have the VM upgrade to the newest hardware version allowed on the vhost.  I cannot find a way to do this since powercli doesn't like v18 yet.  Any advice?

0 Kudos
1 Reply
LucD
Leadership
Leadership

You can use the UpgradeVM method.

$vm = Get-VM -Name MyVM
$vm.ExtensionData.UpgradeVM('vmx-18')

 


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos