Creating a VirtualApp
You always create a VirtualApp without children. The CreateVApp method includes the following parameters:
resSpec – Properties you would specify for a ResourcePool.
configSpecVAppConfigSpec data object for specifying virtual-application specific information.
vmFolder – Depends on the VirtualApp structure:
If the VirtualApp has another virtual application in the ancestry chain, the folder parameter must be NULL when you create the VirtualApp.