Open chriskoch99 opened 3 years ago
Hey Chris, I have the same error, but with the MaxResolutionOfAnyOneMonitor setting as well. My question is, where exactly did you put in your fix? In the json or in the ps1?
This was a direct edit to the New-HVPool function in VMware.HV.Helper.psm1. See my last two code blocks above for the specific change. Should be able to search for the original lines in VMware.HV.Helper.psm1 to find the spot.
Thanks! I'll give that a try.
Scenario: Exporting pool settings from a desktop pool in one pod, for use in creating a replica pool in another pod.
Source pool is Automated, Instant Clone, Blast protocol only. No PCoIP.
Exported JSON file has the following:
Using
New-HVPool
with the JSON file as input for the-spec
option, I get the following:This is because null values are not included in the ValidateSet for the $maxNumberOfMonitors and $maxResolutionOfAnyOneMonitor variables as defined at the beginning of the script, and the
if ($null -ne $jsonObject.DesktopSettings.displayProtocolSettings.pcoipDisplaySettings)
section doesn't code around the possibility of null values for Blast-only pools.To resolve this, I have modified the following:
to the following:
This seems to work. For Blast only pools, the values of these settings when you export them will generally be null, and the function should allow for this.
Thoughts?