A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
Hi Luis Pizarro,
I hope doing good.
For specific steps to get that information from Log Analytic. Please follow as mentioned below
1.Create Log analytics workspace as per show below image Please refer the documentation how to Create a Log Analytics workspace
2.Next add the Log Analytics workspace name AVDLaw it has to add to the diagnostics setting like mentioned below image
3.Next Setup the Data collection logs before that you need to create storage account to collect logs to send to Log Analytics and create the same region where Log analytics you have created Create an Azure storage account
4.Next Setup Data collection logs go to the host pool and select the session host under monitor section click on diagnostic setting add the previously created storage setting add that extension enable that guest level extension confirm which logs do you want tick check as per below image
5.Next you can add the reader access to read only from resource group level Desktop Virtualization reader
In the same way you can add the for log analytics workspace as Log analytics reader
6.After this setup you can navigate to Log analytics workspace resource you can select predefined query to get the active session and user logins and also customize the queries based on your requirement
If you found this information helpful and my inputs, please click an accepting the answer and don't forget to "Upvote" on my post for other community members reference