VMware Cloud Community
dalo
Hot Shot
Hot Shot

add portgroups to distributed virtual switch

I would migrate our virtual switch to a distributed virtual switch. Because we have a lot of portgroups I will script this task.

Is it possible to add the portgroups to a dv-switch with the power-cli?

Daniel

0 Kudos
3 Replies
admin
Immortal
Immortal

Yes, but you have to use the raw API, there are no cmdlets to do it.

JerryH
Contributor
Contributor

I am interested in this as well.

Could you perhaps give us some small samples on how to access that part of the API?

Will you be adding cmdlets to handle the DVS later on btw?

0 Kudos
gertvangorp
Enthusiast
Enthusiast

Hi,

There are 2 ways to get to a sample script.

1. go to the lucd.info web site (he is a guru on scripting with powershell and so.

2. Go to the vmware.com/go/onyx this is a procy that helps you to understand what is happening when you use your vsphere client. It gives you scripts.

Greetings

Gert

0 Kudos