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.


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

$myVApp = Get-CIVApp -Name 'MyVApp'

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

Get-CIVAppNetwork -VApp $myVApp -Name 'MyVAppNetwork' | Set-CIVAppNetwork -PrimaryDns -SecondaryDns -DnsSuffix '' -StaticIPPool " -"

(Optional) Remove MyVAppNetwork.

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

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

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

Retrieve the organization network named MyOrgNetwork1.

$myOrgNetwork1 = Get-OrgNetwork -Name 'MyOrgNetwork1'

Retrieve the organization network named MyOrgNetwork2.

$myOrgNetwork2 = Get-OrgNetwork -Name 'MyOrgNetwork2'

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.