VMware Cloud Community
Scissor
Virtuoso
Virtuoso

Migrate Powered off VMs during "Remediate-Inventory"?

When Remediating a host using VUM in the vSphere C# Client there is a checkbox during the wizard that states “Migrate powered off and suspended virtual machines to other hosts in the cluster, if a host must enter maintenance mode.”   How can I replicate this behavior using the Update Manager PowerCLI tools?  The “Remediate-Inventory” cmdlet does not appear to expose that option.

This is with Update Manager PowerCLI 5.5

0 Kudos
2 Replies
LucD
Leadership
Leadership

You could use the Set-VMHost cmdlet with the -State Maintenance and the -Evacuate switch.


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

0 Kudos
Scissor
Virtuoso
Virtuoso

Currently that is what I am doing, but I would prefer to have VUM handle putting hosts into maintenance mode like it does when triggered through the vSphere Client.  

I would love to be able to use "Remediate-Inventory" against a Cluster object instead of each Host individually.

0 Kudos