Closed TerminallyChilI closed 4 years ago
plz
@TerminallyChilI Hmmm...let me send around internal to see if we can get some traction on this. Can you confirm which template/PS script you used as well? You're correct that once it gets to Offpeak, all but minimumNumberOfRDSH should be set to drain mode..
Thanks Christian.
I used the templates and scripts located here : https://github.com/Azure/RDS-Templates/tree/master/wvd-sh/WVD%20scaling%20script
I've confirmed the same behaviour accross 2 different customers too, all using the same scripts/templates.
Hopefully I've used the correct version.
For the time being I've just appended some dirty Powershell to the bottom of basicScale.PS1 to ensure that at least 1 host is left running off peak (prioritizing the host with current most active sessions). It's working well for now 😄
Hi @TerminallyChilI , confirmed here also. Script ran fine for 2 weeks and now in the morning no one can login at our customer. I am going to implement the logicapps solution (that was posted below) as replacement for the older script. More news end of this week! https://github.com/Azure/RDS-Templates/tree/master/wvd-templates/wvd-scaling-script
Hey @TriXje
Logicapps seem like a good option, please let me know how you go with this approach. I was only aware of the basicScale.ps1 method. Things change too quickly hahaha.
Does anyone know if the basicScale.ps1 script is deprecated/not recommended?
@TerminallyChilI : Yes, it is deprecated and not recommended.
Please try the new script that uses logic apps and is fully described here in the public documentation: Set up scaling script.
Closing this out. Please create a new issue if scenario reproduces.
Hi there,
We have 2 hosts in our host pool.
When the scaling script runs it sets both RD Hosts in the host pool into drain mode, and no-one can connect to either resource.
I have specified the minimumNumberOfRDSH as 1.
My understanding would be that at least one of the RD Hosts would have AllowNewSessions to be true while off peak, so that people could access at least one of the servers, then once on-peak the other server would start to allow new sessions.
Pleas see the below output from before and after running the scaling script:
BEFORE RUNNING SCALING SCRIPT: Get-RdsSessionHost -TenantName $WVDTenantName -HostPoolName $hostPoolName
OUTPUT AFTER RUNNING SCALING SCRIPT: PS C:_WVDScaling> C:_WVDScaling\basicScale.ps1
Please let me know which additional information you may require.
Also confirming that the VMs in the host pool are all the same VM Tier (D4sv3)