Summary
When the next guest operation fails, start with the last step you can prove succeeded. In this module, you separated power and provisioning state from guest health, chose diagnostic channels that still worked, and used evidence from the current operation to distinguish agent, handler, script, and monitoring failures.
At the next Contoso handover, “the report works over SSH” isn't enough to close the ticket. That was true before the repair. What changed is that the corrected extension command now returns the expected report and exits successfully on a new sequence. The independent SSH check shows the report still works outside the extension.
More info
These official references describe the exact agent, channel, extension, and command behavior used in the module.
- Troubleshoot Windows Server virtual machines in Azure
- VM power states, provisioning states, and instance view
- Windows VM Agent troubleshooting
- Windows event collection
- Convert DateTime evidence to UTC
- Azure Linux VM Agent
- Linux agent configuration reference
- Linux agent cloud-init wait behavior
- VM OSProfile extension-operation control
- Cloud-init provisioning and troubleshooting
- Azure platform IP address and connectivity tests
- Troubleshoot the Azure Linux Agent
- Linux extension prerequisites, networking, and common failures
- Ubuntu OpenBSD netcat command options
- Action Run Command for Linux
- Custom Script for Linux
- Linux Custom Script command-execution implementation
- Linux Custom Script execution-artifact cleanup
- Azure extension-platform cleanup utility
- Windows Custom Script execution context
- Linux boot-error troubleshooting
- Serial Console for Linux
- Serial Console for Windows
- Azure CLI VM extension commands
- Azure CLI VM instance view
- Understand Azure role-assignment scope
- Troubleshoot Linux boot issues caused by fstab errors