Hello Stephen Stephens
Based on the information shared, the VM enters a stopped state after approximately 7-8 hours of uptime. Event Viewer indicates a kernel crash event; however, additional investigation is required to determine whether the shutdown is related to a guest OS event, an Azure platform event, or an automated operation.
1. Confirm what is stopping the VM (Azure-side)
Even if a kernel crash is visible inside the guest OS, it is important to verify whether Azure recorded a stop, restart, or deallocation event.
Azure Portal → Virtual Machine → Activity Log
Look for events around the time the VM turns off each day:
- Start / Stop / Deallocate operations
- Automation / Runbook activity
- Policy actions
- Platform-initiated maintenance or restart events
If the Activity Log shows the VM was stopped or deallocated by an authorized user, policy, or automation process, this information can help identify the source of the shutdown.
2. Review scheduled automation and provisioning state
If Azure Automation, Logic Apps, Event Grid, or other automation solutions are being used to manage the VM lifecycle, review the associated schedules and execution history.
Verify:
- Service Principal or Managed Identity permissions
- VM provisioning state during execution
- Schedule conflicts or workflow logic issues
Compare shutdown timestamps with automation job history and Activity Log entries.
3.Review guest operating system logs
Since a kernel crash event is present in Event Viewer, review logs generated around the shutdown timeframe, including:
- Event Viewer / Syslog entries
- Scheduled jobs, updates, monitoring agents, or recurring workloads
- Resource utilization such as CPU, memory, and disk activity
Correlating these events with the VM shutdown time may provide additional context regarding the kernel crash event.
4. Review Resource Health diagnostics
Check:
Virtual Machine → Resource Health
Review any platform-reported health events recorded during the timeframe of the issue. Resource Health can help determine whether Azure detected an infrastructure-related event affecting the VM.
Also review:
Azure Monitor → Metrics / Diagnostics
- CPU
- Memory
- Disk I/O
- Heartbeat
Correlate the metrics with the reported shutdown time.
5. Validate configured start/stop schedules
If Auto-shutdown or scheduled VM management configurations are enabled, validate the configuration and schedule settings to rule out expected shutdown actions.
6. If the issue is persistent and appears platform-related
If Resource Health shows recurring platform-related events affecting the VM, consider the following actions:
- Redeploy the VM to move it to a new Azure host while retaining the VM configuration and associated resources where applicable. This can help determine whether the issue is related to the underlying host infrastructure. Can you please update us if the action plan provided was helpful? Should there be any follow-up questions or concerns, please let us know and we shall try to address them. If these answer your question, click "Upvote" which may be beneficial to other community members reading this thread.