Quickstart: Onboard Linux computers to Azure Security Center
After you onboard your Azure subscriptions, you can enable Security Center for Linux resources running outside of Azure, for example on-premises or in other clouds, by provisioning an Agent. The Agent is called the Microsoft Monitoring Agent (MMA), but it is also known as the OMS agent.
This quickstart shows you how to install the Agent on a Linux computer.
To get started with Security Center, you must have a subscription to Microsoft Azure. If you do not have a subscription, you can sign up for a free account.
You must be on Security Center’s Standard pricing tier before starting this quickstart. See Onboard your Azure subscription to Security Center Standard for upgrade instructions. You can try Security Center’s Standard at no cost. To learn more, see the pricing page.
Add new Linux computer
Sign into the Azure portal.
On the Microsoft Azure menu, select Security Center. Security Center - Overview opens.
Under the Security Center main menu, select Getting started.
Select the Get started tab.
Click Configure under Add new non-Azure computers, a list of your Log Analytics workspaces is shown. The list includes, if applicable, the default workspace created for you by Security Center when automatic provisioning was enabled. Select this workspace or another workspace you want to use.
On the Direct Agent page, under DOWNLOAD AND ONBOARD AGENT FOR LINUX, select the copy button to copy the wget command.
Open Notepad, and paste this command. Save this file to a location that can be accessible from your Linux computer.
Install the agent
On your Linux computer, open the file that was previously saved. Select the entire content, copy, open a terminal console, and paste the command.
Once the installation is finished, you can validate that the omsagent is installed by running the pgrep command. The command will return the omsagent PID (Process ID) as shown below:
The logs for the Agent can be found at: /var/opt/microsoft/omsagent/<workspace id>/log/
After some time, it may take up to 30 minutes, the new Linux computer will appear in Security Center.
Now you can monitor your Azure VMs and non-Azure computers in one place. Under Compute, you have an overview of all VMs and computers along with recommendations. Each column represents one set of recommendations. The color represents the VM's or computer's current security state for that recommendation. Security Center also surfaces any detections for these computers in Security alerts.
There are two types of icons represented on the Compute blade:
Clean up resources
When no longer needed, you can remove the agent from the Linux computer.
To remove the agent:
Download the Linux agent universal script to the computer.
Run the bundle .sh file with the --purge argument on the computer, which completely removes the agent and its configuration.
sudo sh ./omsagent-<version>.universal.x64.sh --purge
In this quick start, you provisioned the agent on a Linux computer. To learn more about how to use Security Center, continue to the tutorial for configuring a security policy and assessing the security of your resources.