Quantcast
Channel: VMware Communities: Message List - VMware vCloud Director
Viewing all articles
Browse latest Browse all 7719

Re: vApp is losing auto NAT when re-configuring main network

$
0
0

Get-CIVAppNetwork -VApp $NewVapp -name *mgmt-192* | Set-CIVAppNetwork -FirewallEnabled:$false -NatEnabled:$true -ParentOrgNetwork $Parentnetwork

What is the content of the variable "$Parentnetwork" ?

 

As far as I know, the option "-ParentOrgNetwork" requires an object from type "OrgNetwork". Not a string. So, if you only specify the name in this variable it won't work.

 

If that's the case with you, something like this could work:

$Parentnetwork = Get-OrgNetwork -Name 'orgNetworkName'

Get-CIVAppNetwork -VApp $NewVapp -name *mgmt-192* | Set-CIVAppNetwork -FirewallEnabled:$false -NatEnabled:$true -ParentOrgNetwork $Parentnetwork


Viewing all articles
Browse latest Browse all 7719

Trending Articles