Module 9: Assignment - 2
Tasks To Be Performed:
- Use the previously connected VMs
- Connect Log Analytics to this virtual machine
Step 1: Create a Log Analytics Workspace
- Log into the Azure portal: portal.azure.com.
- Go to All services and search for Log Analytics.
- Select Log Analytics workspaces.
- In the Log Analytics workspaces blade, click Create.
- Enter the necessary information: Subscription, Resource Group, Name, and Region.
- Click Next to select a Pricing tier, and then choose the appropriate pricing tier.
- Review your settings and click Create.
- Refresh the Log Analytics workspaces blade to display the new workspace.
Step 3: Connect Virtual Machines to the Log Analytics Workspace
- In the Azure portal, go to the workspace you created in Step 1.
- Click on “Connect a data source” and choose “Azure Virtual machine (VMs)“.
- Search for the virtual machine you want to connect.
- Click the entry of your virtual machine and then click Connect.
- Wait for the extension to be installed on the virtual machine.
VIDEO
create the workspace goes to resource Click connect a data source, azure virtual selects the VM, just to look
goes to the “agent” in the left side of workspae “legacy actiivty log connector”
create diagnostics settings, creates one, all logs all metrics
creates diagnostic settings
then goes to logs to run some queries
create the works pace
To connect the VM
We select allLogs, AllMetrics and select “Send to Log Analytics workspace”
back in workspace we click Logs and try a query