Azure VM user disconnected time

RaKu 41 Reputation points
2024-08-02T14:00:59.8366667+00:00

hi

Did anyone use PowerShell to get a disconnect time of a user session form a Azure VM ?

Is this possible to get over powershell ?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,563 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,880 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nikhil Duserla 5,230 Reputation points Microsoft External Staff
    2024-08-09T09:33:41.1933333+00:00

    Hi @RaKu,

    Please follow this information:

    Since there isn't a built-in command that directly provides the disconnect time of a user session from an Azure VM without logging into the VM, you'll need to create a custom script that meets your specific requirements.

    This script will likely involve using Azure PowerShell modules to retrieve the necessary data and then processing it to extract the disconnect time.

    Thank you!

    0 comments No comments

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.