You can import and export vApps to OVA and OVF files.
Prerequisites
Verify that you are connected to a vCenter Server system.
Procedure
- Get the vApp you want to export.
$oldVApp = Get-VApp OldVApp
- Export the OldVApp vApp to a local directory and name the exported appliance WebApp.
Export-VApp -VApp $oldVApp -Name WebApp -Destination D:\vapps\ -CreateSeparateFolder
- Import the WebApp vApp from a local directory to the Storage2 datastore.
Import-VApp -Source D:\vapps\WebApp\WebApp.ovf -VMHost (Get-VMHost Host1) -Datastore (Get-Datastore -VMHost MyHost01 -Name Storage2)