Quick trick to see the uptime of a VM directly in the Azure Portal.
The steps to follow
- Go to your Virtual Machine in the Azure Portal
- Under ‘Operations’, click on ‘Run command’
- Choose ‘RunPowerShellScript’
(get-date) - (gcim Win32_OperatingSystem).LastBootUpTime
After a minute of two you will get the uptime of your Virtual Machine.