Azure VM start/stop logs

Viewed 1184

enter image description hereWe have multiple Virtual Machine's in our azure infrastructure.Can someone please let me how can I get the logs of Azure Virtual Machine start/stop time and by whom it was done?

1 Answers

You can always go to View Activity Logs and see the activity.

If you want to check the status and the activity you can do it through Powershell or REST API as defined here

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView?api-version=2019-12-01

Related