Azure Monitor can collect data directly from your Azure virtual machines into a Log Analytics workspace for detailed analysis and correlation. Installing the Log Analytics VM extension for Windows and Linux allows Azure Monitor to collect data from your Azure VMs. Reference: https://docs.microsoft.com/en-us/azure/azure-monitor/learn/quick-collect-azurevm