Home Arrow Icon Knowledge base Arrow Icon Global Arrow Icon How do I configure auto-shutdown notifications in DevTest Labs


How do I configure auto-shutdown notifications in DevTest Labs


Configuring auto-shutdown notifications in Azure DevTest Labs involves a few steps to ensure that lab users receive timely warnings before their virtual machines (VMs) are shut down. Here’s how you can set it up:

1. Enable Auto-Shutdown:
- Go to your lab's home page and select Configuration and policies.
- In the Schedules section, choose Auto-shutdown.
- Enable auto-shutdown by selecting On and specify the scheduled shutdown time and time zone[3][5].

2. Configure Notifications:
- Under the auto-shutdown settings, select Yes for Send notification before auto-shutdown?.
- You can choose to send notifications via email or a webhook. For email, enter the recipient's email address. For a webhook, provide a URL endpoint where notifications will be sent[3][5].

3. Using Webhooks for Custom Notifications:
- To send notifications via a webhook, you can use services like Azure Logic Apps. Create a Logic App with an HTTP request trigger to handle the shutdown notifications.
- Configure the Logic App to send notifications (e.g., via Teams or email) when it receives the webhook request. This allows users to delay shutdowns by clicking on action buttons in the notification[1].

4. Notification Options:
- Notifications typically include options to skip the shutdown or delay it by one or two hours. This gives users flexibility to manage their work sessions[3][7].

By following these steps, you can effectively configure auto-shutdown notifications in DevTest Labs, ensuring that users are informed and can manage their VMs efficiently.

Citations:
[1] https://techcommunity.microsoft.com/blog/azuredevcommunityblog/devtest-labs---shutdown-notifications-in-teams-chat-messages/1874092
[2] https://stackoverflow.com/questions/45046627/how-do-i-set-automatic-updates-on-azure-devtest-lab-vm
[3] https://learn.microsoft.com/en-us/azure/devtest-labs/devtest-lab-auto-shutdown
[4] https://stackoverflow.com/questions/72086163/azure-policy-enable-auto-shutdown-at-vms
[5] https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/devtest-labs/devtest-lab-create-lab.md
[6] https://docs.azure.cn/en-us/virtual-machines/maintenance-notifications
[7] https://cloudinfra.net/configure-auto-shutdown-for-azure-virtual-machines/
[8] https://readyxrm.blog/2018/02/28/using-azure-devtest-labs-for-dynamics-365-development/