@@ -3925,18 +3925,26 @@ function New-HVPool {
3925
3925
[boolean]$enableHTMLAccess = $false,
3926
3926
3927
3927
# DesktopPCoIPDisplaySettings
3928
- #desktopSpec.desktopSettings.logoffSettings .pcoipDisplaySettings.renderer3D
3928
+ #desktopSpec.desktopSettings.DisplayProtocolSettings .pcoipDisplaySettings.renderer3D
3929
3929
[Parameter(Mandatory = $false,ParameterSetName = 'INSTANT_CLONE')]
3930
3930
[Parameter(Mandatory = $false,ParameterSetName = "LINKED_CLONE")]
3931
3931
[Parameter(Mandatory = $false,ParameterSetName = 'MANUAL')]
3932
3932
[ValidateSet('MANAGE_BY_VSPHERE_CLIENT', 'AUTOMATIC', 'SOFTWARE', 'HARDWARE', 'DISABLED')]
3933
3933
[string]$renderer3D = 'DISABLED',
3934
3934
3935
- #desktopSpec.desktopSettings.logoffSettings .pcoipDisplaySettings.enableGRIDvGPUs
3935
+ #desktopSpec.desktopSettings.DisplayProtocolSettings .pcoipDisplaySettings.enableGRIDvGPUs
3936
3936
[Parameter(Mandatory = $false,ParameterSetName = "LINKED_CLONE")]
3937
3937
[Parameter(Mandatory = $false,ParameterSetName = 'MANUAL')]
3938
+ [Parameter(Mandatory = $false,ParameterSetName = 'INSTANT_CLONE')]
3938
3939
[boolean]$enableGRIDvGPUs = $false,
3939
3940
3941
+ #desktopSpec.desktopSettings.DisplayProtocolSettings.pcoipDisplaySettings.VGPUGridProfile
3942
+ [Parameter(Mandatory = $false,ParameterSetName = "LINKED_CLONE")]
3943
+ # [Parameter(Mandatory = $false,ParameterSetName = 'MANUAL')]
3944
+ [Parameter(Mandatory = $false,ParameterSetName = 'INSTANT_CLONE')]
3945
+ [ValidateSet('grid_m10-0b','grid_m10-1b','grid_m10-2b','grid_m10-0q','grid_m10-1q','grid_m10-2q','grid_m10-4q','grid_m10-8q')]
3946
+ [string]$VGPUGridProfile = $null,
3947
+
3940
3948
#desktopSpec.desktopSettings.logoffSettings.pcoipDisplaySettings.vRamSizeMB
3941
3949
[Parameter(Mandatory = $false,ParameterSetName = "LINKED_CLONE")]
3942
3950
[ValidateRange(64,512)]
@@ -4658,6 +4666,7 @@ function New-HVPool {
4658
4666
if ($null -ne $jsonObject.DesktopSettings.displayProtocolSettings.pcoipDisplaySettings) {
4659
4667
$renderer3D = $jsonObject.DesktopSettings.displayProtocolSettings.pcoipDisplaySettings.renderer3D
4660
4668
$enableGRIDvGPUs = $jsonObject.DesktopSettings.displayProtocolSettings.pcoipDisplaySettings.enableGRIDvGPUs
4669
+ $VGPUGridProfile = $jsonObject.DesktopSettings.DisplayProtocolSettings.PcoipDisplaySettings.VGPUGridProfile
4661
4670
if ($jsonObject.DesktopSettings.displayProtocolSettings.pcoipDisplaySettings.vRamSizeMB) {
4662
4671
$vRamSizeMB = $jsonObject.DesktopSettings.displayProtocolSettings.pcoipDisplaySettings.vRamSizeMB
4663
4672
}
@@ -4981,6 +4990,16 @@ function New-HVPool {
4981
4990
$desktopPCoIPDisplaySettings.setRenderer3D($renderer3D)
4982
4991
#setEnableGRIDvGPUs is not exists, because this property cannot be updated.
4983
4992
$desktopPCoIPDisplaySettings.getDataObject().EnableGRIDvGPUs = $enableGRIDvGPUs
4993
+ if ($enableGRIDvGPUs -eq $true -and $renderer3D -ne 'MANAGE_BY_VSPHERE_CLIENT' -and $InstantClone -eq $true) {
4994
+ Write-Error "Enabling GRID support requires that 3D rendering be managed by the vSphere client"
4995
+ break
4996
+ }
4997
+ if ($enableGRIDvGPUs -eq $true -and [string]::IsNullOrEmpty($VGPUGridProfile) -eq $true -and $InstantClone -ne $true) {
4998
+ Write-Error "Enabling GRID support for Instant clones, this requires a specified VGPUGridProfile"
4999
+ break
5000
+ } else {
5001
+ $desktopPCoIPDisplaySettings.getDataObject().VGPUGridProfile = $VGPUGridProfile
5002
+ }
4984
5003
$desktopPCoIPDisplaySettings.setVRamSizeMB($vRamSizeMB)
4985
5004
$desktopPCoIPDisplaySettings.setMaxNumberOfMonitors($maxNumberOfMonitors)
4986
5005
$desktopPCoIPDisplaySettings.setMaxResolutionOfAnyOneMonitor($maxResolutionOfAnyOneMonitor)
0 commit comments