How to get to know that the user is not logging into AVD from pat 30 days?

kavya madda 60 Reputation points
2024-09-09T05:56:53.62+00:00

Hi,

I want to know the list of users who didn't logged (sign in activity) into AVD from past 20 or more than 20 days other than getting the idle state of AVD & AVD sessions.

what are the ways to find it out and what are the prerequisites for that?

what are the ways to achieve it and what level of accesses do I need?

Thanks in Advance

Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,841 questions
0 comments No comments
{count} votes

Accepted answer
  1. Akshay kumar Mandha 3,390 Reputation points Microsoft External Staff Moderator
    2024-09-09T09:58:09.6733333+00:00

    Hi kavya madda,
    Welcome to the Microsoft Q&A Platform. Thank you for posting your query here

    Based upon your question, you can follow these steps to find out users who have not accessed Azure Virtual Desktop (AVD) in last 20 days using Azure Monitor and Log Analytics

    Prerequisites: - Make sure you have contributor or monitoring Reader permissions on the log analytics workspace is enabled ensure AVD diagnostics are configured to send logs to your log analytics workspace first. Go to the azure monitor and then log analytics workspace. Please refer this document to configure Diagnostic Settings for Azure Virtual Desktop

    You can review the logs to track user activity using Kusto Query Language (KQL). To find users who haven’t logged in for at least 20 days, use this query:

    AVDActivityLogs
    | where TimeGenerated < ago(20d)
    | summarize LastSignIn=max(TimeGenerated) by UserPrincipalName
    | where LastSignIn < ago(20d)
    
    

    This query is used to filter the users with last sign-in activity as 20 days older. Review, and export the results as required.

    If an answer has been helpful, please consider accepting the answer and "Upvote" to help increase visibility of this question for other members of the Microsoft Q&A community. User's image


0 additional answers

Sort by: Most helpful

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.