Currently working on a project where I require adding new port groups to the esxi. The issue that Im facing is that im trying to create a port group spec that I can pass to host.networkSystem.AddPortGroup so it can show in my esxi, but it seems to give me a LazyType when I try to create a spec and pass it to the method .This is the code so far...
Describe the bug
Currently working on a project where I require adding new port groups to the esxi. The issue that Im facing is that im trying to create a port group spec that I can pass to host.networkSystem.AddPortGroup so it can show in my esxi, but it seems to give me a LazyType when I try to create a spec and pass it to the method .This is the code so far...
Reproduction steps
Expected behavior
The expected behavior is to get a type vim.host.PortGroup.Specification that I can pass to my esxi host to add a port group.
Additional context
Any direction if im doing it right or wrong in terms of trying to add a port group. And any guidance someone can give me to help fix this. Thank You !