We are trying to create a remote desktop service that allows users to manage and access remote desktops where each remote desktop is a virtual machine on a vCenter. Users should be able to create and destroy them often. I am evaluating Pulumi as a possible way for us to manage those virtual machines but I don't understand how to use it to power off an existing VM.
I Tried creating a VM using vsphere.VirtualMachine
and expected there to be a powerState
parameter that allows me to control whether the vm should be on or off, but I cant find such parameter. It seems that the only input parameters concerned with power state are forcePowerOff, poweronTimeout, and shutdownWaitTimeout. There is however a powerState output.