If your Azure VM is showing an agent status of "Not Ready" and is not starting despite the portal indicating that it was started successfully, you can follow these troubleshooting steps:
- Check the VM Status: Ensure that the VM is indeed running. You can verify this in the Azure portal by navigating to the Virtual machines section and checking the status.
- Restart the Guest Agent: If the agent status is "Not Ready", it may be necessary to restart the Azure VM Guest Agent. For Windows VMs, you can do this by connecting via Remote Desktop Protocol (RDP) and restarting the service. For Linux VMs, connect via SSH and restart the service named waagent or walinuxagent.
- Check Connectivity: Ensure that the VM can connect to the Azure Fabric Controller. You can test this by using a tool like
curlto check connectivity to the IP address 168.63.129.16 on ports 80, 443, and 32526. If there are connectivity issues, check your firewall settings. - Review Logs: Check the logs located in /var/log/waagent.log for Linux VMs or WaAppAgent.log for Windows VMs. Look for any error messages that might indicate why the agent is not ready.
- Verify Auto-Update Settings: Ensure that auto-update is enabled for the Azure Linux Agent by checking the configuration in /etc/waagent.conf. The setting should be
AutoUpdate.Enabled=y. - Check for Extensions Issues: If the agent status is "Not Ready" or blank, it might indicate that the Guest Agent isn't installed or isn't functioning properly. Ensure that all VM extensions are in a "provisioning succeeded" state.
By following these steps, you should be able to diagnose and potentially resolve the issue with the VM agent status and startup problems.
References: