CREATING A LINUX VIRTUAL MACHINE
- In the Azure Portal Search Bar, enter "Virtual Machines" and select it from the results.
- Choose "Create" and select "Azure Virtual Machine."
- On the Basics page, select Linux as the operating system and configure the VM size, region, and other settings as needed.
- Complete the creation process and wait for the VM to deploy.
INSTALLING THE AZURE MONITOR AGENT ON LINUX VM
- In the Azure Portal Search Bar, enter "Data Collection Rules" and select it.
- Click "+ Create" to start a new data collection rule.
- Provide a name for the rule, select your subscription, resource group, and region matching your Linux VM.
- Set the platform type to Linux.
- Under Resources, add your Linux VM to the rule.
- In the Collect and Deliver tab, add a data source such as Performance Counters.
- Under Destination, add Azure Monitor Logs and select the Log Analytics workspace.
- Review and create the data collection rule. This automatically deploys the Azure Monitor Agent extension to your Linux VM.
VERIFYING AGENT INSTALLATION AND DATA INGESTION
- Navigate to your Log Analytics workspace in the Azure Portal.
- Select "Logs" from the workspace menu.
- Switch to KQL mode and run the query:




Top comments (0)