Diagnose Windows and Linux Azure virtual machine guest, agent, and extension failures
Azure can show a Windows or Linux VM as Running even when its guest operating system stalls during startup. A configuration update can also fail on a healthy guest: a network rule might prevent the VM agent from receiving instructions from Azure, or an extension the agent starts might run a setup script that fails. The update status alone doesn't tell you which happened. A stalled guest can leave the application offline, while a failed script might leave it serving users with its old settings. Rebooting the VM in the latter case can interrupt a working service without fixing the script.
Learning objectives
After completing this module, you'll be able to:
- Distinguish the existence of a VM resource, its power state, and its provisioning state (the result of a create or update request) from the health of the guest, extensions, and agents.
- Select a diagnostic channel whose dependencies remain usable.
- Use timestamps, logs, and output from the Custom Script extension's handler (the program that runs the submitted command) to identify where the operation failed.
- Choose a change you can undo, verify the original operation on a new attempt, and check the application (the workload) through an independent channel.
- Prepare a support packet: a record of the evidence, changes, and results that another operator can use. Identify when to hand the VM over for recovery from backup or recovery in another region.
Prerequisites
Before you begin, you should have:
- Experience troubleshooting Windows startup and virtual machine extension failures.
- Familiarity with Azure virtual machine operations and Windows or Linux guest administration.
The examples use a worked incident and supplied evidence. You don't need an Azure subscription or a running virtual machine.