I have configured scripted actions to put AVD session host in drain mode, then perform maintenance/cleanup actions and finally get AVD session host out of drain mode, but between the startup of the VM and the first scripted action to put the AVD session host in drain mode, there is a “gap” where users can still logon to the AVD session host and you do not want to have this as maintenance/cleanup actions ware being performed then on the AVD session host while users are already connected to the host.
The ability to set the host to drain mode automatically on Start of host… host turns on… runs its maintenance/cleanup scripts… still in drain mode… and finally when all scripts have ran drain mode is disabled… and a user can now connect safely.
So it would be a very useful feature to have drain mode enabled before or just at startup of the AVD session host VM.
There is also already a similar feature request created in the past: https://nmehelp.getnerdio.com/hc/en-us/community/posts/34594045519501-A-toggle-to-enable-Drain-Mode-on-Startup-of-host-when-a-startup-script-is-selected

Comments (1 comment)