Automate turning drain mode back to off after certain time period

Brass 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
Hi Johan,

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