Forum Discussion
StevenR
Apr 26, 2022Brass Contributor
Automate turning drain mode back to off after certain time period
Does anyone know of a way to automate azure to turn drain mode off on AVD's after either a certain time period or at the same time each day.
Johan_Vanneuville
Iron Contributor
there is a powershell command for this so you could create a logic app with the powershell code and let in run at certain moments.
Here is the link to the powershell code
https://docs.microsoft.com/en-us/azure/virtual-desktop/drain-mode
Here is the link to the powershell code
https://docs.microsoft.com/en-us/azure/virtual-desktop/drain-mode
StevenR
Apr 27, 2022Brass Contributor
Hi Johan,
This pretty much what i ended up doing, works a treat set to 30 run every 30 mins, Thanks for the response
This pretty much what i ended up doing, works a treat set to 30 run every 30 mins, Thanks for the response