Deploy the Azure Monitor Agent to protect your servers with Microsoft Defender for Cloud
To make sure that your server resources are secure, Microsoft Defender for Cloud uses agents installed on your servers to send information about your servers to Microsoft Defender for Cloud for analysis. You can quietly deploy the Azure Monitor Agent on your servers when you enable Defender for Servers.
In this article, we're going to show you how to deploy the agent so that you can protect your servers.
|Relevant Defender plan:||- Security posture management (CSPM) (free and enabled by default) for Endpoint protection assessment
- Microsoft Defender for Servers Plan 2 for adaptive application controls, fileless attack detection, and file integrity monitoring
|Required roles and permissions (subscription-level):||Owner|
Azure virtual machines
Azure Arc-enabled machines
Azure Government, Azure China 21Vianet
Before you deploy AMA with Defender for Cloud, you must have the following prerequisites:
- Make sure your multicloud and on-premises machines have Azure Arc installed.
- Make sure the Defender plans that you want the Azure Monitor Agent to support are enabled:
Deploy the Azure Monitor Agent with Defender for Cloud
To deploy the Azure Monitor Agent with Defender for Cloud:
From Defender for Cloud's menu, open Environment settings.
Select the relevant subscription.
In the Monitoring coverage column of the Defender for Server plan, select Settings.
Enable deployment of the Azure Monitor Agent:
For the Log Analytics agent/Azure Monitor Agent, select the On status.
In the Configuration column, you can see the enabled agent type. When you enable Defender plans, Defender for Cloud decides which agent to provision based on your environment. In most cases, the default is the Log Analytics agent.
For the Log Analytics agent/Azure Monitor Agent, select Edit configuration.
For the Auto-provisioning configuration agent type, select Azure Monitor Agent.
- The Azure Monitor Agent is installed on all existing machines in the selected subscription, and on all new machines created in the subscription.
- The Log Analytics agent isn't uninstalled from machines that already have it installed. You can leave the Log Analytics agent on the machine, or you can manually remove the Log Analytics agent if you don't require it for other protections.
- The agent sends data to the default workspace for the subscription. You can also configure a custom workspace to send data to.
- You can't enable collection of additional security events.
Impact of running with both the Log Analytics and Azure Monitor Agents
You can run both the Log Analytics and Azure Monitor Agents on the same machine, but you should be aware of these considerations:
- Certain recommendations or alerts are reported by both agents and appear twice in Defender for Cloud.
- Each machine is billed once in Defender for Cloud, but make sure you track billing of other services connected to the Log Analytics and Azure Monitor, such as the Log Analytics workspace data ingestion.
- Both agents have performance impact on the machine.
When you enable Defender for Servers Plan 2, Defender for Cloud decides which agent to provision. In most cases, the default is the Log Analytics agent.
Learn more about migrating to the Azure Monitor Agent.
Configure custom destination Log Analytics workspace
When you install the Azure Monitor Agent with auto-provisioning, you can define the destination workspace of the installed extensions. By default, the destination is the “default workspace” that Defender for Cloud creates for each region in the subscription:
defaultWorkspace-<subscriptionId>-<regionShortName>. Defender for Cloud automatically configures the data collection rules, workspace solution, and additional extensions for that workspace.
If you configure a custom Log Analytics workspace:
- Defender for Cloud only configures the data collection rules and additional extensions for the custom workspace. You'll have to configure the workspace solution on the custom workspace.
- Machines with Log Analytics agent that report to a Log Analytics workspace with the security solution are billed even when the Defender for Servers plan isn't enabled. Machines with the Azure Monitor Agent are billed only when the plan is enabled on the subscription. The security solution is still required on the workspace to work with the plans features and to be eligible for the 500-MB benefit.
To configure a custom destination workspace for the Azure Monitor Agent:
- From Defender for Cloud's menu, open Environment settings.
- Select the relevant subscription.
- In the Monitoring coverage column of the Defender for Server plan, select Settings.
- For the Log Analytics agent/Azure Monitor Agent, select Edit configuration.
- Select Custom workspace, and select the workspace that you want to send data to.
Log analytics workspace solutions
The Azure Monitor Agent requires Log analytics workspace solutions. These solutions are automatically installed when you auto-provision the Azure Monitor Agent with the default workspace.
The required Log Analytics workspace solutions for the data that you're collecting are:
- Security posture management (CSPM) – SecurityCenterFree solution
- Defender for Servers Plan 2 – Security solution
Additional extensions for Defender for Cloud
The Azure Monitor Agent requires additional extensions. The ASA extension, which supports endpoint protection recommendations, fileless attack detection, and Adaptive Application controls, is automatically installed when you auto-provision the Azure Monitor Agent.
Additional security events collection
When you auto-provision the Log Analytics agent in Defender for Cloud, you can choose to collect additional security events to the workspace. When you auto-provision the Azure Monitor agent in Defender for Cloud, the option to collect additional security events to the workspace isn't available. Defender for Cloud doesn't rely on these security events, but they can be helpful for investigations through Microsoft Sentinel.
If you want to collect security events when you auto-provision the Azure Monitor Agent, you can create a Data Collection Rule to collect the required events.
Like for Log Analytics workspaces, Defender for Cloud users are eligible for 500-MB of free data daily on defined data types that include security events.
Now that you enabled the Azure Monitor Agent, check out the features that are supported by the agent: