Export or Import vApps

You can import and export vApps to OVA and OVF files.

Prerequisites

Verify that you are connected to a vCenter Server system.

Procedure

  1. Get the vApp you want to export.
    $oldVApp = Get-VApp OldVApp
  2. Export the OldVApp vApp to a local directory and name the exported appliance WebApp.
    Export-VApp -VApp $oldVApp -Name WebApp -Destination D:\vapps\ -CreateSeparateFolder
  3. 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)