question

KumarGaurav-5524 avatar image
0 Votes"
KumarGaurav-5524 asked YOSHIAKIHATADA-6597 commented

Number of Active Users connected to an Azure Virtual Machine

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AlanKinane avatar image
0 Votes"
AlanKinane answered YOSHIAKIHATADA-6597 commented

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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.