what are the ways to check the azure virtual desktop idle status ? Ex:14 days

kavya madda 60 Reputation points
2024-09-04T17:56:29.96+00:00

Hi ,

I want to check the azure virtual desktop idle status i.e of 14 days ,

if it is idle for 14 days should give the vm name which is idle from 14 days .

so please let me know the possible ways how which i achieve it successfully

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

Accepted answer
  1. deherman-MSFT 36,831 Reputation points Microsoft Employee
    2024-09-04T19:41:11.0733333+00:00

    @kavya madda

    If you setup Log Analytics for Azure Virtual Desktop, it should be possible to setup an alert or monitor for session hosts with 0 sessions for 14 days.

    Create a Log Analytics query to check for Active Sessions. For example:

    WVDConnections
    | where TimeGenerated > ago(14d)
    | summarize ActiveSessions = count() by 
    | where ActiveSessions == 0
    
    

    This recent Q&A thread goes over a similar configuration. Please check to see if it helps. Let me know if you have any questions or run into any issues.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A!

    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.