Creating vApp templates from vApps in the cloud might minimize future efforts for cloning vApps. You can use the templates later to create vApps that are based on the source vApp.

Prerequisites

Verify that you are connected to a VMware Cloud Director server.

Procedure

  1. Retrieve the source vApp for the vApp template that you want to create.
    $myVApp = Get-CIVApp -Name 'MyVApp'
  2. If the source vApp is running, stop it.
    $myVApp = Stop-CIVApp -VApp $myVApp
  3. Retrieve the catalog to which you want to add the new vApp template.
    $myCatalog = Get-Catalog -Name 'MyCatalog'
  4. Retrieve the organization vDC to which you want to add the new vApp template.
    $myOrgVdc = Get-OrgVdc -Name 'MyOrgVdc'
  5. Create a vApp template.
    New-CIVAppTemplate -Name 'MyVAppTemplate' -VApp $myVApp -OrgVdc $myOrgVDC -Catalog $myCatalog
  6. Start the source vApp.
    $myVApp = Start-CIVApp -VApp $myVApp

What to do next

Create a vApp from the template and modify the vApp. See Create and modify a vApp.