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!