vmware-archive / webcommander

Powerful, flexible, intuitive and most importantly simple. That is what a real automation solution should be. No matter how complicated the task is, we'd like to turn it into a single click. Is that possible? Not without webcommander :)
MIT License
165 stars 47 forks source link

Poker for stop-vmguest #188

Closed TKOED closed 6 years ago

TKOED commented 6 years ago

Hi, I am new to webcommander, I can see under the "VM" section a click option for "Shutdown VM". When testing this seems to do a stop-vm. Is there a way to add a Poker for a graceful shutdown using stop-vmguest ?

9whirls commented 6 years ago

You could either replace stop-vm with shutdown-vmguest or call vm.stop() function.

Here are some examples https://github.com/9whirls/webcommander_walnut/blob/master/powershell/vSphere/VM/object.ps1#L55 https://github.com/vmware/webcommander/blob/master/powershell/objects.ps1#L422

TKOED commented 6 years ago

Thanks for your response, looks very straight forward and appreciate your time