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
    .
  • configSpec
    VAppConfigSpec
    data object for specifying virtual-application specific information.
  • vmFolder
    – Depends on the
    VirtualApp
    structure:
    • When creating top-level virtual applications, that is, virtual applications with no ancestor virtual applications, you must specify a folder.
    • If the
      VirtualApp
      has another virtual application in the ancestry chain, the
      folder
      parameter must be
      NULL
      when you create the
      VirtualApp
      .