Onboarding Servers to Defender for Servers
This lesson compares the two plans, and explains how each kind of machine is onboarded.
Learning outcomes
After completing this lesson, you will be able to:
- Compare Plan 1 and Plan 2.
- Explain the enablement scope.
- Choose an onboarding route for a machine.
- Identify which agents are no longer used.
Plans 1 and 2
Defender for Servers has two plans, and many scenarios are decided by a single feature that only one plan offers. Plan 1 is entry-level, and it focuses on endpoint detection and response through Defender for Endpoint. Plan 2 includes everything in Plan 1 and more. The following table gives the features that matter most.
| Feature | Plan 1 | Plan 2 |
|---|---|---|
| Defender for Endpoint EDR and automatic onboarding | Yes | Yes |
| Software inventory | Yes | Yes |
| Agent-based vulnerability scanning | Yes | Yes |
| Agentless vulnerability scanning | No | Yes |
| Agentless malware and secrets scanning | No | Yes |
| Defender Vulnerability Management premium features | No | Yes |
| Just-in-time VM access | No | Yes |
| File integrity monitoring | No | Yes |
| Network map | No | Yes |
| Operating system baseline misconfigurations | No | Yes |
| Defender for DNS alerts and Azure network layer detection | No | Yes |
| 500 MB of free data ingestion per day | No | Yes |
Learn these by theme. If a requirement says just-in-time, agentless, file integrity, baseline or free log ingestion, it needs Plan 2. Separately, Defender Experts for Servers is a paid managed service that works with either plan.
Plan 1 or Plan 2?
Enablement scope
Both plans are normally enabled at subscription level, under Environment settings, and new machines are covered automatically. Plan 1 can also be enabled for a single resource. Plan 2 cannot be enabled per resource, although it can be disabled per resource. A scenario that asks to protect only some machines in a subscription with Plan 2 therefore needs either an exclusion on the others, or a separate subscription.
A 30-day trial applies, and it cannot be stopped, paused or extended. Azure Policy can enforce the plan on all subscriptions. Across large estates, a built-in definition can configure the plan automatically.
Scoping the plan
Onboarding by machine type
Each machine type reaches the plan through a different route. The following table summarizes them.
| Machine | Route | Prerequisites |
|---|---|---|
| Azure VM | Direct, once the plan is on | None beyond a supported operating system |
| On-premises server | Azure Arc | Azure Connected Machine agent |
| AWS EC2 instance | AWS connector and Azure Arc | AWS SSM Agent, with the AmazonSSMManagedInstanceCore policy |
| GCP Compute Engine instance | GCP connector and Azure Arc | A connector with the Servers plan on |
Once a machine is in scope, the Defender for Endpoint extension installs automatically on supported machines. The tenant needs Defender for Endpoint integration turned on in Defender for Cloud's settings. Vulnerability management is enabled by default when that extension is in place.
Onboarding routes
Agents: what is and is not needed
Agent requirements have changed, and older study material may mislead. The Log Analytics agent retired in August 2024, and its features moved to the Defender for Endpoint integration or to agentless scanning. Defender for Servers no longer uses it, and no longer uses the Azure Monitor Agent for most features. AMA remains a supported collection method for the 500 MB ingestion benefit. Operating system baseline assessment in Plan 2 needs the Azure Machine Configuration extension.
Older answers
An option that says to deploy the Log Analytics agent, or to install the Qualys scanner, describes an older approach. Current onboarding relies on the Defender for Endpoint extension and agentless scanning.
Enabling with a command
The following commands set Plan 2 on a subscription and confirm the setting.
az security pricing create --name VirtualMachines --tier Standard --subplan P2
az security pricing show --name VirtualMachines --query "{tier:pricingTier,subPlan:subPlan}"Choosing and scoping a plan
A subscription has 100 VMs. Twenty of them are domain controllers that need just-in-time access and file integrity monitoring, and the other 80 need EDR only. The company wants to pay for Plan 2 only where it is needed, and it is willing to reorganize subscriptions. What should you do?
Just-in-time access and file integrity monitoring need Plan 2, and Plan 2 cannot be enabled for individual resources. Move the domain controllers to a separate subscription with Plan 2, and keep the other 80 VMs in a subscription with Plan 1, which provides EDR.
Enabling Plan 2 on the existing subscription and disabling it on the 80 VMs would save money, but those VMs would then lose the EDR that they need. Enabling Plan 1 per resource on the 20 domain controllers would not supply the Plan 2 features.
Which plan includes the 500 MB daily data ingestion benefit?
Show answer
Plan 2.
Exam Tips
Remember for the exam
- JIT, file integrity monitoring and agentless scanning need Plan 2.
- Plan 1 can be enabled per resource; Plan 2 can only be disabled per resource.
- On-premises and multicloud machines need Azure Arc.
- The Log Analytics agent retired in August 2024.