PowerCLI-Example-Scripts
PowerCLI-Example-Scripts copied to clipboard
New-HVFarm .json NIC spec not applying
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" }
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.
Hi Jack, Attached scrubbed json file, naming pattern worked for me. TestFarm.zip Cheers
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.