Sometimes we experience an unexpected shutdown in our VMs in Azure, to troubleshoot that I recommend these steps.

Open the event viewer

and filter the System Windows Log for these events number

6005,6006,6008,6009, 1074, 1076

the current event ids show you all the VM reboots, the service restarts (6…) and the shutdown types (1074)

When you have the message then check the shutdown reason code in the description and in the site below you can find the description

When you have the exact time, you can check the Application and the other Windows logs for specific errors.

Sometime the restart is due by the Window Update service and the best way to check this is looking in the Windows update logs.
You can find this log into C:\Windows\WindowsUpdate.log

In this log you will find any operation performed by the update service, even the restarted.

If you like to disable the automatic restart, you can do that opening the Local Group Policy Editor.

Search for Edit group policy

Navigate into:

Computer Configuration\Administrator Templates\Windows Components\Windows Update

Enable the No auto-restart policy as below.


Previous articleAzureLeap – Improve productivity with Azure Quickstart Templates
Next articleAzureLeap – Azure Security Health Check with Azure TechCenter
I have +25 years of hands-on experience in Cloud Technologies and Cybersecurity, supporting and driving global companies to adopt technologies in the most secure and profitable way. My cores expertises are Security and Cloud Governance, and I strongly believe in the conjunction of both to achieve the top result. In my career, I had the opportunity to lead global cloud infrastructures, providing guidance and leadership in Security and Cloud Governance. Security is my first passion, but I have deep experience in many other areas like Cloud Governance and Integration. I define myself as a very versatile person. In my past, I had the opportunity to work in many different areas, supporting different company roles, from technical roles to Sales, Pre-Sales and High Stakeholders. I see myself as a hands-on geek manager. I love to get my hands dirty and also be able to lead and create important things and initiatives. Mt passion for technology is also the reason for my activities in the IT community. I love sharing my experience and motivating people on engaging the technology with the right motivation and passion. I do conferences around the world, sharing my passion. I have been Microsoft MVP since 2006, Certified Ethical Hacker (CEH) and with a Master in Cybersecurity.


Please enter your comment!
Please enter your name here