PowerCLI-Example-Scripts icon indicating copy to clipboard operation
PowerCLI-Example-Scripts copied to clipboard

New-HVFarm .json NIC spec not applying

Open yuriy-petrenko opened this issue 7 years ago • 3 comments
trafficstars

When using .json spec file and supplying NIC network, this setting is ignored and parent VM network is copied to the clone VM instead. Example .json setting below, where MyDPGNetwork is the name of Distributed Port Group. "VirtualCenterNetworkingSettings": { "Nics": "MyDPGNetwork" }

yuriy-petrenko avatar Nov 20 '18 16:11 yuriy-petrenko

I just confirmed this bug. I also spotted that naming pattern is broken for New-HVFarm. There is no parameter in the function for the nic settings. Could you post a copy of your scrubbed json that you're using, and I'll see if I can fix it.

jackwmc4 avatar Dec 12 '18 15:12 jackwmc4

Hi Jack, Attached scrubbed json file, naming pattern worked for me. TestFarm.zip Cheers

yuriy-petrenko avatar Dec 12 '18 15:12 yuriy-petrenko

EDIT: In my haste, I read this as New-HVPool, though New-HVFarm has the same problem.

Though there is a similar issue that was opened recently, this is more directly the same issue we are experiencing. We're backing up our pool configs to json file as a DR exercise. We can confirm the description from the OP is still the case in the latest release. When restoring from a json file that has a network defined, that is not read by New-HVPool and the pool is instead set to use the same network as the parent VM.

bfett20 avatar Feb 17 '20 20:02 bfett20