Thanks for posting your question in the Microsoft Q&A forum.
First, you need to enable guest-level monitoring for your VMs. This allows Azure Monitor to collect performance counters and event logs from the guest operating system.
Once guest-level monitoring is enabled, you need to configure the performance counters you want to collect. create a Log Analytics workspace if you don't have one already. This workspace will store the performance data collected from your VMs.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful