Forum Discussion
RomeroSilva
May 06, 2021Copper Contributor
WVD Scaling Script: Doesn't Logoff user sessions and stop VMs during off-peak hours
Hi, We have experienced that during the off-peak hours the scaling script doesn't logoff user sessions and stop VMs when there are active or disconnected sessions. Minimum number of running ...
JereVirta
May 06, 2021Copper Contributor
Hi,
Which scaling solutions are you using? Is the one provided at Microsoft Docs -site?
https://docs.microsoft.com/en-us/azure/virtual-desktop/set-up-scaling-script
Have you set parameter LimitSecondsToForceLogOffUser. Think it defaults to zero, but I'm not sure as I have not used this solution in ages. When set to zero, any user logged in will be left untouched.
You could control session limit also with Group Policy at Computer Configuration > Policies > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Session Time Limits
I use scaling solution by Travis Roberts found at https://www.ciraltos.com/update-with-breadth-first-auto-scale-session-hosts-in-windows-virtual-desktop-spring-update-arm-with-azure-function/
- Jere
Which scaling solutions are you using? Is the one provided at Microsoft Docs -site?
https://docs.microsoft.com/en-us/azure/virtual-desktop/set-up-scaling-script
Have you set parameter LimitSecondsToForceLogOffUser. Think it defaults to zero, but I'm not sure as I have not used this solution in ages. When set to zero, any user logged in will be left untouched.
You could control session limit also with Group Policy at Computer Configuration > Policies > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Session Time Limits
I use scaling solution by Travis Roberts found at https://www.ciraltos.com/update-with-breadth-first-auto-scale-session-hosts-in-windows-virtual-desktop-spring-update-arm-with-azure-function/
- Jere
StevenR
May 06, 2021Brass Contributor
Use gpo to log inactive sessions off and people who haven’t had any activity for a certain amount of time. Works fine