Hello
Just follow this
https://learn.microsoft.com/en-us/azure/azure-monitor/agents/agents-overview
OR
https://learn.microsoft.com/en-us/azure/azure-monitor/vm/vminsights-enable-overview#prerequisites
OR
When you pen Azure Monitor , go to Virtual MAchines and go to Map
You will get a Pop Up to Onboard
Start by that !
I hope this helps!
Kindly mark the answer as Accepted and Upvote in case it helped!
Regards