VMware Cloud Community
goce74
Contributor
Contributor

Add a network to VApp Powershell

Hello,

i am stuck and was hoping someone can help me out.

What I want to do it to be able to remove the Network from a VApp and then add another network to it

I can remove it via the following command

Get-CIVApp -Name 'DEV0-vap01' | Get-CIVAppNetwork | Remove-CIVAppNetwork -Confirm:$false -ErrorAction SilentlyContinue

But to add one I was trying the following

Get-CIVApp -Name 'DEV0-vap01' | Set-CIVAppNetwork -ParentOrgVdcNetwork 'App-2614' -Confirm:$false

It doesn't like it. I have been looking at all the commands but I just can't work it out.

Tags (1)
0 Kudos
0 Replies