I'm trying to do the same thing as in this post.. http://communities.vmware.com/message/1298627;jsessionid=5EBBA0D2B3D0842F93165519F6BF20F7
I am using virtualdeviceconfigspec but I am encountering an error trying to set the Device.Backing.DeviceName property. It is telling me that it doesn't exist on that object. I think this may have something to do with the fact that I am trying to set a distributed switch port group but not certain.
Thanks,
Jason
Hi Jason, you can find the new script in my dvSwitch scripting – Part 5 – Clone/pg to dvPG post.
Have a go at it and let me know if it works in your environment.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You are right, for a dvSwitch portgroup it has to be done a bit differently.
Have a look at my dvSwitch scripting – Part 2 – dvPortgroup post.
It doesn't show how to do this during a clone operation but it shows how you can connect a dvSwitch portgroup to a guest.
If you want I could add a new post to my dvSwitch series on how to do this during clone operations ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Luc,
Thanks for the pointers. I think a new post could help a lot.
-Jason
Hi Jason, you can find the new script in my dvSwitch scripting – Part 5 – Clone/pg to dvPG post.
Have a go at it and let me know if it works in your environment.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Luc,
It works great. I did it nearly the same way using the information from your previous blog post.
Thanks,
Jason