Hi @Ham C
Thank you for reaching out with your query on Microsoft learn Q&A. This issue needs a bit of investigation/diagnosis .
Possible Causes:
Scheduled Maintenance: Azure performs regular maintenance on its infrastructure, which can sometimes cause VMs to be temporarily shut down.
Resource Health Issues: Check Azure Resource Health for any alerts or issues related to your VM.
High CPU Usage: Excessive CPU usage or resource constraints might trigger automatic shutdowns.
Security Policies: Security policies or compliance requirements might be causing the shutdowns.
Software or OS Issues: Ensure that there are no software or operating system-level issues causing the shutdowns.
Steps to Diagnose:
Check Activity Logs: Review the activity logs in the Azure portal to see if there are any events or alerts related to the shutdowns.
Event Viewer Logs: Review the activity logs in the windows event viewer if this is a windows machine.
Resource Health: Use Azure Resource Health to get detailed information about the health of your VM and any underlying issues.
Monitor Performance Metrics: Use Azure Monitor to track performance metrics and identify any unusual activity or resource usage spikes.
If the issue persists, consider opening a support ticket with Azure support for further assistance.
I hope these suggestions help you identify the root cause of the issue. If you need more detailed guidance or have any other questions, feel free to ask!
If I have answered your question, please accept this as answer as a token of appreciation.