VMware Horizon Community
cbaptiste
Hot Shot
Hot Shot

New-HVPool & Nics

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.

Reply
0 Kudos
3 Replies
vBritinUSA
Hot Shot
Hot Shot

Hi

Check out this thread as it may help...not great news

New-HVPool / Set-HVPool Network Settings Instant Clone Powershell Script · Issue #262 · vmware/Power...

Please mark helpful or correct if my answer resolved your issue.
Reply
0 Kudos
cbaptiste
Hot Shot
Hot Shot

Yes. Thanks.  I read it before like 20 times lol.

Reply
0 Kudos
freydaddy
VMware Employee
VMware Employee

Answered on GitHub. Take a look and see if it works for you.

New-HVPool & Nics · Issue #376 · vmware/PowerCLI-Example-Scripts · GitHub

Reply
0 Kudos