Share via

How to get the useridle session for past 30,45 & 15 days?

kavya madda 60 Reputation points
2024-10-09T11:52:04.1033333+00:00

Hi I am able to get the list of users who are logged into AVD from past 30 days.

Now in the same logic it should have to give the 45 days & 15 days of data .

The time generated should be same right & the last login date should change right

I have this doubt .

Could anyone please help me on this and the generating output should be in JSon format

Thanks inAdvance

Azure Virtual Desktop
Azure Virtual Desktop

A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.

Microsoft Security | Microsoft Entra | Microsoft Entra ID

1 answer

Sort by: Most helpful
  1. Prrudram-MSFT 28,506 Reputation points Moderator
    2024-10-10T10:09:37.4333333+00:00

    Hello @kavya madda

    Thank you for reaching out to the Microsoft Q&A platform.

    The best way is as long as you retain the data in Log Analytics, you can use AVD insights So, something like below. You will use both Log Analytics and Azure Resource graph to verify that the host is part of a host pool even if it's not been turned on recently and thus not sending heartbeats to Log Analytics. User's image User's image

    0 comments No comments

Your answer

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