Hello Yoav
Welcome to Microsoft Q&A Platform, thanks for posting your query here.
Adding to previous response from Marshaljs, "VM agent status is not ready" error message indicates that there is an issue with the Azure VM Agent.
You can try below troubleshooting steps:
- Try to Restart the VM and see if that helps. In some cases, restarting the VM may help to resolve the issue.
- You can try reinstalling the VM Agent. To do this, you can use the Azure PowerShell or Azure CLI command-line tools to execute the following command:
Get-AzVM -ResourceGroupName <ResourceGroupName> -Name <VMName> | Remove-AzVM -Force
This will remove the VM but keep the disks and network interfaces. After that, execute the following command to create a new VM with the same configuration:
New-AzVM -ResourceGroupName <ResourceGroupName> -Location <Location> -Name <VMName> -ImageName <ImageName> -Size <VMSize> -OsDiskName <OSDiskName> -ManagedDiskId <ManagedDiskId> -OSDiskCaching <OSDiskCaching>
- You can also check the VM Agent logs to identify any issues. To do this, you can connect to the VM using Remote Desktop or SSH and check the log files located in the following directory:
C:\WindowsAzure\Logs\WaAppAgent.log
If you are unable to resolve the issue using the above steps, try creating a new VM and attaching the existing disk to it. This will create a new VM with the same configuration but with a fresh VM Agent installation. Hope this helps. If you need further help on this, tag me in a comment. If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.