New-HVPool & Nics

This post was originally published on this site

Hi,

 

I am writing a script to automate some pools creation since we are migrating from linked clones to instant clones and I have been facing an issue when it comes to the -Nics parameter. I know it’s optional but due to VLANs and DCHP restrictions I would like to assign each pool their own network(s). Anyway someone can provide me a sample on how to use the parameter using a port group label as string.

 

-Nics <DesktopNetworkInterfaceCardSettings[]>

desktopSpec.automatedDesktopSpec.virtualCenterProvisioningSettings.virtualCenterNetworkingSettings.nics

 

I have been very unsuccessful turning “VM-Network-2” to this object type the parameter is expecting.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.