Microsoft Monitoring Agent Setup (health)
The Microsoft Monitoring Agent must be installed and configured on the data collection machine. It must also be installed on the Log Analytics Gateway if deploying that scenario.
For detailed information about the Microsoft Monitoring Agent including system requirements, network firewall configuration requirements, TLS 1.2 requirements, download, and installation instructions, see the Agent Windows article.
The information below list the proxy and firewall configuration information required for the Linux and Windows agent to communicate with Log Analytics within the Azure commercial cloud. For complete and up to date information on the networking requirements for the MMA as well as networking requirements for Azure Government or other sovereign Azure Log Analytics services, see the article HERE.
Agent Resource | Ports | Direction | Bypass HTTPS inspection |
---|---|---|---|
* .ods.opinsights.azure.com | Port 443 | Outbound | Yes |
* .oms.opinsights.azure.com | Port 443 | Outbound | Yes |
* .blob.core.windows.net | Port 443 | Outbound | Yes |
* .azure-automation.net | Port 443 | Outbound | Yes |
Download and install the Microsoft Monitoring Agent (MMA) setup file from Azure Log Analytics
On the designated data collection machine and Log Analytics Gateway (if using) complete the following steps. If Log Analytics Gateway scenario is being deployed, then install and configure the MMA on the gateway first.
Note
If the collection machine does not have an Internet connection, perform the first 3 steps from an Internet Connected machine.
- In the Azure portal, go to Log Analytics, select your workspace and click the Advanced Settings Icon.
- Click Connected Sources, and then select Windows Servers.

- Click the Download Windows Agent link that is applicable to your computer processor type to download the setup file. If the agent is downloaded on another machine, copy the Setup file over to the data collection machine or Log Analytics Gateway server.

Note
If a monitoring client was installed for System Center Operations Manager (SCOM), the setup only offers to Upgrade the agent, preserving existing settings. The upgrade for SCOM agent does not include any of the configuration steps below.*
The next steps apply to installations where no monitoring client was installed for SCOM. Refer to the Microsoft Monitoring Agent Upgrade section in this document when you are performing an upgrade of the Monitoring Agent for SCOM.
- Run Setup to install the agent.
- On the Welcome page, click Next.
- On the License Terms page, read the license and then click I Agree.
- On the Destination Folder page, change or keep the default installation folder and then click Next.
- On the Agent Setup Options page, choose the Connect the agent to Azure Log Analytics (OMS) option. Click Next.






Note
If you have been installing the Microsoft Monitoring Agent on the Log Analytics Gateway, you need to repeat the installation steps above on the data collection machine.
After setting up the data collection machine, continue getting started with On-demand Assessments by selecting the Configure Microsoft On-demand Assessments article in the Table of Contents.
Microsoft Monitoring Agent Upgrade
If a monitoring agent is already installed, the Microsoft Monitoring Agent setup will only display the upgrade option. The upgrade will keep the existing configuration and adds a new option to configure a Log Analytics workspace.
Follow the steps below to perform an upgrade and configure the agent for the log analytics Workspace.
- Run Setup to install the agent
- On the Welcome page, click Next
- On the License Terms page, read the license and then click I Agree
- On the begin Upgrade page, click Upgrade
- On the Completion page, click Finish
- Once the agent installation completed, go to the Control Panel




After setting up the data collection machine, continue getting started with On-demand Assessments by selecting the Configure Microsoft On-demand Assessments article in the Table of Contents.
For general feedback on the Resource Center or content, please submit your feedback to your Microsoft representative. For specific requests and content updates regarding the Services Hub, contact our Support Team to submit a case.