Auto Shutdown warning
Change it so it initiates the windows shutdown command with a delay and notification on it; eg shutdown /s /t 900 /c "Azure Auto Shutdown"
Then if you are actively using the machine the user will be warned (a popup will appear) AND the user have the option to cancel the shutdown ("shutdown /a").
Also having the ability to send an email notification would be helpful.
Thanks for the feedback.
Currently a user receives an auto shutdown notification either via email or a webhook which also includes the ability to wither delay or skip shutdown. The feature for having in machine notification via popups is in the backlog with no ETA.
For anyone who want to see this happen, please don’t hesitate to vote for it.
I will update this post for further updates.
Mandatory! Why on earth this was never thought about is shocking.
Heath Stewart commented
Assuming you're using either InitiateShutdown() or InitiateSystemShutdown/Ex() you only need to set the dwGracePeriod or dwTimeout parameters (depending on the function) to a non-zero value. Seems trivial.
If you wanted, you could go further to - perhaps with an option to DTL managers to enable - keep nagging the user every 30 minutes or so (same warning timeframe for emails).
The problem with the emails is that our focus is in the VMs and in test scenarios we most likely are not running an email client in those VMs.
I too liked the idea, a prompt on VM before shutdown will help a lot.
On the email notification, web hook gives you this option to trigger the email and also postpone the shutdown of VM. You can check below link.
I strongly like this idea! I also want to be warned if there are Windows update when auto-shutdown schedule comes.