Create an OVF Package in a Content Library from a Virtual Machine

You can create library items from existing virtual machines or virtual appliances. Use those library items later to deploy virtual machines and virtual appliances on hosts and clusters in the
vSphere Automation
environment.
  1. Create a
    DeployableIdentity
    instance to specify the source virtual machine or virtual appliance to be captured in an OVF package.
  2. Create a
    CreateTarget
    instance to identify the content library where the OVF package is stored.
  3. Create a
    CreateSpec
    instance to specify the properties of the OVF package.
  4. Initiate a synchronous create operation by invoking the
    create
    function of the
    LibraryItem
    service.
  5. Verify the results of the
    create
    operation.