Deploy Defender for Servers
Defender for Servers in Microsoft Defender for Cloud brings threat detection and advanced defenses to your Windows and Linux machines that run in Azure, Amazon Web Services (AWS), Google Cloud Platform (GCP), and on-premises environments. This plan includes the integrated license for Microsoft Defender for Endpoint, security baselines and OS level assessments, vulnerability assessment scanning, adaptive application controls (AAC), file integrity monitoring (FIM), and more.
Microsoft Defender for Servers includes an automatic, native integration with Microsoft Defender for Endpoint. Learn more, Protect your endpoints with Defender for Cloud's integrated EDR solution: Microsoft Defender for Endpoint. With this integration enabled, you have access to the vulnerability findings from Microsoft Defender vulnerability management.
Defender for Servers offers two plan options with different levels of protection and their own cost. You can learn more about Defender for Cloud's pricing on the pricing page.
Prerequisites
You need a Microsoft Azure subscription. If you don't have an Azure subscription, you can sign up for a free subscription.
You must enable Microsoft Defender for Cloud on your Azure subscription.
Review the Defender for Servers deployment guide.
Enable the Defender for Servers plan
You can enable the Defender for Servers plan on an Azure subscription, AWS account, or GCP project, the Log Analytics workspace level, or enable the plan at the resource level.
Enable on an Azure subscription, AWS account, or GCP project
You can enable the Defender for Servers plan from the Environment settings page to protect all the machines in an Azure subscription, AWS account, or GCP project.
To enable the Defender for Servers plan:
Sign in to the Azure portal.
Search for and select Microsoft Defender for Cloud.
In the Defender for Cloud menu, select Environment settings.
Select the relevant Azure subscription, AWS account, or GCP project.
On the Defender plans page, toggle the Servers switch to On.
After enabling the plan, you have the ability to configure the features of the plan to suit your needs. When you enable Defender for Servers on a subscription, it doesn't extend that coverage to an attached workspace. You need to enable Defender for Servers on the Log Analytics workspace level.
Select a Defender for Servers plan
When you enable the Defender for Servers plan, you're then given the option to select which plan - Plan 1 or Plan 2 - to enable. There are two plans you can choose from that offer different levels of protections for your resources.
Compare the available features provided by each plan.
To select a Defender for Servers plan:
Sign in to the Azure portal.
Search for and select Microsoft Defender for Cloud.
In the Defender for Cloud menu, select Environment settings.
Select the relevant Azure subscription, AWS account, or GCP project.
Select Change plans.
In the popup window, select Plan 2 or Plan 1.
Select Confirm.
Select Save.
After enabling the plan, you have the ability to configure the features of the plan to suit your needs.
Enable the plan at the Log Analytics workspace level
When you enable Defender for Servers on your subscription, the coverage provided by Defender for Servers isn't automatically extended to your Log Analytics workspaces. You need to enable Defender for Servers on each workspace. Defender for Servers on workspaces only supports Plan 2.
To enable Defender for Servers on the Log Analytics workspace:
Sign in to the Azure portal.
Search for and select Microsoft Defender for Cloud.
In the Defender for Cloud menu, select Environment settings.
Select the relevant workspace.
Toggle the servers plan to On.
Select Save.
By enabling Defender for Servers on a Log Analytics workspace, you aren't enabling all of the security protections available. You can also protect your Log Analytics workspaces with Foundational CSPM and SQL servers on machines.
Important
When you enable Defender for Servers on a workspace, all connected machines will automatically have Plan 2 enabled regardless of their connected subscription's settings.
Enable Defender for Servers at the resource level
To protect all of your existing and future resources, we recommend you enable Defender for Servers on your entire Azure subscription.
You can exclude specific resources or manage security configurations at a lower hierarchy level by enabling the Defender for Servers plan at the resource level. You can enable the plan on the resource level with REST API or at scale.
The supported resource types include:
- Azure VMs.
- On-premises with Azure Arc.
- Azure Virtual Machine Scale Sets Flex.
Enable Defender for Servers at the resource level with REST API
The ability to enable or disable Defender for Servers at the resource level is available exclusively via REST API. Learn how to interact with the API to manage your Defender for Servers at the resource or subscription level.
After enabling the plan, you have the ability to configure the features of the plan to suit your needs.
Enable Defender for Servers at the resource level at scale
Use the following base script file to customize it for your specific needs.
Download and save this file as a PowerShell file.
Run the downloaded file.
Set pricing by tag or by resource group.
Follow the rest of the onscreen instructions.
After enabling the plan, you have the ability to configure the features of the plan to suit your needs.