Microsoft Operations Management Suite Cookbook
上QQ阅读APP看书,第一时间看更新

Connecting Windows computers to OMS Log Analytics

As mentioned earlier, you can directly connect Windows computers to your OMS Log Analytics workspace. To do this, you will need to download the agent setup file from the OMS portal or the Azure portal, install the agent, and configure it for your workspace:

  1. Navigate to the Azure portal, select Log Analytics, and select your Log Analytics workspace
  2. In the Log Analytics workspace blade, select Quick Start, and under Choose a data source to connect to the workspace, select Computers:
Figure 1.25 - Onboarding Windows computers to Log Analytics
  1. In the Direct Agent blade, click the Download Windows Agent that applies to your computer processor type to download the setup file
  2. Save the setup file to your preferred directory
  1. In the Workspace ID and Keys fields, copy the Workspace ID and Primary Key values to a Notepad for use during direct agent installation:
Figure 1.26- Log Analytics Windows agents
  1. On the computer that you want to manage with OMS Log Analytics, run the setup file, and click Next on the Welcome page
  2. On the License Terms page, read the terms and click I Agree
  1. On the Destination Folder page, change or keep the default folder and click Next
  2. In the Agent Setup options page, select the Connect the agent to Azure Log Analytics (OMS) and click Next
  1. Paste the Workspace ID and Primary Key into the respective Workspace ID and Workspace Key fields, select your preferred Azure Cloud option (Azure Commercial is default) and click Next:
Figure 1.27 - Connecting the Windows Agent to the Log Analytics workspace
  1. On the Ready to Install page, review your choices and click Install
  2. Click Finish once the configuration completes successfully
  1. You will now see the Microsoft Monitoring Agent in the Control Panel of the agent computer. Open the properties of the agent, and under the Azure Log Analytics (OMS) tab you will now see a confirming status - The Microsoft Monitoring Agent has successfully connected to the Microsoft Operations Management Suite Service:
Figure 1.28 - OMS Log Analytics Windows Agent properties