Automate turning drain mode back to off after certain time period

Contributor

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.

2 Replies
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
Hi Johan,

This pretty much what i ended up doing, works a treat set to 30 run every 30 mins, Thanks for the response