Reply to Message

View discussion in a popup

Replying to:
DavidGriswoldeB
Enthusiast
Enthusiast

I gave this a try and I am hitting an error concerning 'DistributedVirtualPort'. I did not think it would be as simple as replacing that with 'Portgroup', but I gave it a try and that did not work either. I assume I need to use a different type with this line as well:

 

$spec.DistributedVirtualPort = New-Object -TypeName VMware.Vim.DistributedVirtualSwitchPortConnection

 

Can't I just not include 'DistributedVirtualPort' in the spec and instead use the 'portgroup' Property? If so, I don't know what type to instantiate.

DavidGriswoldeB_0-1623947410329.png

 

Reply
0 Kudos