Hi,
Firstly, make sure the VM is onboarded to Azure monitor, and that you are capturing Events into the log analytics workspace.
Please see the guide here to onboard, I would recommend the AMA agent, as this is going to replace the older MMA agent: https://learn.microsoft.com/en-us/azure/azure-monitor/vm/monitor-virtual-machine-agent
After the VMs are onboarded, it's a case of creating the alert rules based off KQL queries, there is a good guide here: https://www.terminalworks.com/blog/post/2022/01/09/monitor-windows-services-using-azure-monitor-and-generate-an-email-alert#:~:text=Monitor%20the%20service%20status%201%20Find%20the%20Service,and%20run%20the%20query%20to%20see%20the%20results.
This will enable you to trigger alerts based on a service stopping etc
Hope this helps