Hi @Jeeva A,
Welcome to Microsoft Q&A Forum, thank you for posting your query here!
**
Can't enable VM Insights on a machine**
If the VM is not onboarding after you perform the onboarding process, refer to the below document which has the step-by-step possible causes and troubleshooting steps https://zcusa.951200.xyz/en-us/azure/azure-monitor/vm/vminsights-troubleshoot#cant-enable-vm-insights-on-a-machine
Heartbeat not showing in azure monitor
If no data appears or if the computer didn't send a heartbeat recently, you might have problems with your agent. For agent troubleshooting information, refer below articles:
Unable to get logs from azure monitor
Azure Monitor Agent collects data from virtual machines and sends the data to Azure Monitor. An agent might stop sending data to your Log Analytics workspace in various scenarios. For more information, refer the below document
https://zcusa.951200.xyz/en-us/azure/azure-monitor/logs/data-collection-troubleshoot
let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” wherever the information provided helps you, this can be beneficial to other community members.