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 vDC network that you want to connect to.

$myOrgVdcNetwork = Get-OrgVdcNetwork -Name 'MyOrgVdcNetwork'
3

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

New-CIVAppNetwork -VApp $myVapp -Direct -ParentOrgVdcNetwork $myOrgVdcNetwork

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