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.
Retrieve the vApp for which you want to create a vApp network.
$myVApp = Get-CIVapp -Name 'MyVApp'
Retrieve the organization vDC network that you want to connect to.
$myOrgVdcNetwork = Get-OrgVdcNetwork -Name 'MyOrgVdcNetwork'
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.