How can I check when a VM was last turned on? (I want to delete it)

Morten Munch-Andersen 0 Reputation points
2024-04-17T14:12:18.85+00:00

I have a MABS VM that has the status Stopped (deallocated). It has been so for a long time, and I want to delete it.

However, I'd like to make sure.

How can I check when a VM was last turned on?

/Morten

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,139 questions
{count} votes

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 23,491 Reputation points Microsoft Employee
    2024-04-17T14:52:33.9566667+00:00

    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:

    User's image

    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!

    User's image

    0 comments No comments