Hello Varma,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you would like to monitor CPU usage for 2 VM machine that are specific to you using Azure Monitor.
The best practices to achieve this is to follow the steps here https://learn.microsoft.com/en-us/azure/azure-monitor/vm/monitor-virtual-machine-analyze and you can also review these steps for more details on https://www.youtube.com/watch?v=AA5lgPUn8UI and how to monitor virtual machines with Azure Monitor and Analyze monitoring data here: https://learn.microsoft.com/en-us/azure/azure-monitor/vm/monitor-virtual-machine-analyze.
For more configuration, and insight kindly use the additional resources available by the right side of this page. Thank you.
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful ** so that others in the community facing similar issues can easily find the solution.
Best Regards,
Sina Salam