Number of Active Users connected to an Azure Virtual Machine

Kumar Gaurav 21 Reputation points
2021-10-08T07:15:22.537+00:00

Is there any mechanism to know the number of active users connected to my Azure VM? I searched Metrics but couldn't see any Metrics for this.
I have an N-series GPU-enabled Virtual Machine. I want to know the number of active users on my VM at any point in time.
The requirement is to STOP the VM when there are no active users on the VM.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,196 questions
0 comments No comments
{count} votes

Accepted answer
  1. Alan Kinane 16,791 Reputation points MVP
    2021-10-08T08:57:41.747+00:00

    If you are referring to RDP sessions then I believe you would have to run this from a command line within the VM, e.g. the qwinsta command.

    If you are using Azure Virtual Desktop to provide user access then this has a build in session monitoring tool where you can see the active sessions.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful