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

Verify that you are connected to a vCloud Director server.

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 the new vApp template.

New-CIVAppTemplate -Name 'MyVAppTemplate' -VApp $myVApp -OrgVdc $myOrgVDC -Catalog $myCatalog
6

Start the source vApp.

$myVApp = Start-CIVApp -VApp $myVApp

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