Skip to content

Commit

Permalink
Merge pull request #412 from bitszor/issue-400
Browse files Browse the repository at this point in the history
Fix issue #400 - New-HVFarm fails when maxSessionsType is LIMITED
  • Loading branch information
dmilov authored Feb 17, 2021
2 parents 6ebbad1 + cb6076a commit e52b7da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/VMware.Hv.Helper/VMware.HV.Helper.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -2783,7 +2783,7 @@ function New-HVFarm {

$farmSpecObj.AutomatedFarmSpec.RdsServerMaxSessionsData.MaxSessionsType = $maxSessionsType
if ($maxSessionsType -eq "LIMITED") {
$farmSpecObj.AutomatedFarmSpec.RdsServerMaxSessionsData.MaxSessionsType = $maxSessions
$farmSpecObj.AutomatedFarmSpec.RdsServerMaxSessionsData.MaxSessions = $maxSessions
}
$farmSpecObj.AutomatedFarmSpec.VirtualCenterProvisioningSettings.enableProvisioning = $enableProvisioning
$farmSpecObj.AutomatedFarmSpec.VirtualCenterProvisioningSettings.stopProvisioningOnError = $stopProvisioningOnError
Expand Down

0 comments on commit e52b7da

Please sign in to comment.