Based on the type of the vApp network, you can configure various network settings, such as DNS, static IP pools, and firewalls. If you no longer need a vApp network, you can remove it.

Verify that you are connected to a vCloud Director server.

1

Retrieve the vApp for which you want to modify vApp networks.

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

Modify the settings for DNS and static IP pool for the vApp network named MyVAppNetwork.

Get-CIVAppNetwork -VApp $myVApp -Name 'MyVAppNetwork' | Set-CIVAppNetwork -PrimaryDns 10.17.0.94 -SecondaryDns 10.17.0.95 -DnsSuffix 'my.domain.com' -StaticIPPool "10.151.168.1 - 10.151.169.240"
3

(Optional) Remove MyVAppNetwork.

$myVApp | Get-CIVAppNetwork -Name 'MyVAppNetwork' | Remove-CIVAppNetwork
4

(Optional) Remove all isolated vApp networks for the vApp named MyVapp.

$myVApp | Get-CIVAppNetwork -ConnectionType Isolated | Remove-CIVAppNetwork
5

Retrieve the organization network named MyOrgNetwork1.

$myOrgNetwork1 = Get-OrgNetwork -Name 'MyOrgNetwork1'
6

Retrieve the organization network named MyOrgNetwork2.

$myOrgNetwork2 = Get-OrgNetwork -Name 'MyOrgNetwork2'
7

Redirect all vApp networks that connect to MyOrgNetwork1 to connect to MyOrgNetwork2.

Get-CIVAppNetwork -ParentOrgNetwork $myOrgNetwork1 | Set-CIVAppNetwork -ParentOrgNetwork $myOrgNetwork2 -NatEnabled $false -FirewallEnabled $false

The operation disables the firewall and NAT routing for all vApp networks that are connected to MyOrgNetwork1.