Auto-Shutdown Teams Message to End Users

Cameron Bennett 1 Reputation point
2022-05-10T20:46:40.363+00:00

Hello,

Currently we have the individual AVD machines we are using sending emails to the end users for the auto-shutdown feature that is provided at the Virtual Machine level. The email itself works great, but it provides the option to skip this cycle of shutdown. We also want this message to get to the users by Teams instead of email. Currently, according to the methods provided to set it up, all Teams messages using the Webhook URL are sent to the owner of the VM.

We are looking to make the message go to the last user signed in and send them the shutdown notification so that they are aware the VM is shutting down in teams. I have the message configured and the integration is working, but I cannot find where, or if it is possible, to get the last logged on user in the JSON file, so that it can be provided to the Teams Integration in the Logic App.

Azure DevTest Labs
Azure DevTest Labs
An Azure service that is used for provisioning development and test environments.
280 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,275 questions
Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,624 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.