Hello, @Morten Munch-Andersen !
How can I tell when my VM was last turned on?
From Azure, you can check the Activity Log for the last Start
time in the portal (for Azure CLI you can use az monitor activity-log
and for Azure PowerShell you can use Get-AzLog
).
In the Activity Log for your VM resource, look for the last Start Virtual Machine (Microsoft.Compute/virtualMachines/start/action) operation:
From the VM, you can check OS logs as well (such as Systeminfo
/ System Boot Time
).
I hope this has been helpful! Your feedback is important so please take a moment to accept answers.
If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!