Powering a Virtual Application On or Off

You can use the
PowerOnVApp_Task
method to power on a
VirtualApp
object. This method starts the virtual machines or child virtual applications in the order specified in the virtual application configuration.
While a virtual application is starting, all power operations performed on subentities are disabled.
If a virtual machine in a virtual application fails to start, an exception is returned and the power-on sequence terminates. In case of a failure, virtual machines that are already started remain powered on.
You can use the
PowerOffVApp_Task
method to power off a virtual application. This method stops the virtual machines or child virtual applications in the order specified in the
VirtualApp
object configuration if
force
is
false
. If
force
is set to
true
, this method stops all virtual machines (in no specific order and possibly in parallel) regardless of the
VirtualApp
object auto-start configuration.
While a virtual application is stopping, all power operations performed on subentities are disabled.