To establish a network connection between the virtual machines in a vApp and an organization network, you need to create a direct vApp network.

Verify that you are connected to a vCloud Director server.

1

Retrieve the vApp for which you want to create a vApp network.

$myVApp = Get-CIVapp -Name 'MyVApp'
2

Retrieve the organization network that you want to connect to.

$myOrgNetwork = Get-OrgNetwork -Name 'MyOrgNetwork'
3

Create a direct vApp network that connects to the selected organization network.

New-CIVAppNetwork -VApp $myVapp -Direct -ParentOrgNetwork $myOrgNetwork

By default, the new vApp network has an enabled firewall.