Auto-Shutdown Teams Message to End Users
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.