I'm trying to get the current active session in Azure VM through the Runbook PowerShell. If there is no any active session / usage then planning to stop the VM.
The problem is, I couldn't able to get the current session using RunBook Powershell. Please let me know if any way to get the session detail using PowerShell command.