Microsoft Defender for Servers
Defender for Servers is the server-focused plan inside Microsoft Defender for Cloud. It extends
Microsoft Defender for Endpoint (MDE) to Azure VMs, Azure Arc-enabled machines (on-prem,
AWS EC2, GCP Compute), and VM Scale Sets, and adds server-specific controls: just-in-time VM
access, file integrity monitoring, agentless disk scanning, and vulnerability assessment.
When to use
Designing or hardening protection for server workloads — IaaS VMs, hybrid/multicloud
servers via Arc, jump hosts, domain controllers, line-of-business servers. Use this skill for
plan selection, MDE-for-Servers onboarding, FIM, JIT, and agentless vs agent-based scanning
trade-offs.
Do not use this skill for client endpoints (defender-for-endpoint), AKS/container hosts
(defender-for-containers), Azure storage accounts (defender-for-storage), or generic
Defender for Cloud posture (defender-for-cloud-hardening).
Pick the plan
| If you need... |
Plan |
| Free foundational CSPM only (no server EDR) |
Defender CSPM (no server plan) |
| MDE Plan 2 EDR, threat detection, free 500 MB/day Log Analytics ingestion |
Defender for Servers Plan 1 (per-server) |
| Everything in P1 plus FIM, JIT, agentless scanning, vuln assessment, adaptive app controls, network hardening, regulatory compliance, 500 MB free ingestion |
Defender for Servers Plan 2 |
Rule of thumb: Plan 1 = "I just need EDR everywhere." Plan 2 = "I need EDR + posture +
compliance + FIM." Most enterprises pick P2 for production, P1 for dev/test.
Onboarding paths
| Estate |
Path |
| Azure VMs |
Enable plan at subscription scope; auto-provisioning deploys MDE + Azure Monitor Agent |
| On-prem / VMware servers |
Azure Arc onboarding, then enable plan |
| AWS EC2 / GCP Compute |
Connect AWS account / GCP project to Defender for Cloud; auto-provisioning via Arc |
| VMSS (uniform) |
Plan applies; agentless scan covers ephemeral instances |
Approach
Inventory and connect first. Onboard non-Azure servers via Arc before enabling the
plan; otherwise you pay per-server but get no coverage on hybrid estate.
Verify: Defender for Cloud → Inventory shows all expected resources with a Defender plan
column = Plan 1/2.
Enable Plan 2 at subscription scope (not resource group) so new VMs inherit
automatically. Use Azure Policy Configure Microsoft Defender for Servers to be enabled
at the management group for multi-sub estates.
Turn on auto-provisioning of MDE integration. This pushes the MDE sensor via the
unified solution; do not also onboard servers directly through Intune or local script —
it causes telemetry duplication and double billing.
Verify: a sample VM appears in security.microsoft.com → Device inventory within 1 hour.
Enable agentless disk scanning. Reads VM disk snapshots to find malware, secrets, and
vulnerabilities without any agent — runs once per 24h, no performance impact.
Verify: Recommendations → "Machines should have a vulnerability assessment solution" green
for VMs without MDE Vulnerability Management agent.
Configure JIT VM access for any VM with management ports (RDP 3389, SSH 22, WinRM
5985/5986). Default to 3-hour max request, source IP = requestor only.
Verify: NSGs show JIT-managed deny rules for the protected ports; access requests show in
activity log.
File Integrity Monitoring via MDE (the Log Analytics-based FIM is being retired).
Enable on tier-0 servers (DCs, PKI, jump hosts) first. Tune the rule set — default
includes Windows system files; add your app's config paths.
Verify: FIM events appear in MDE advanced hunting DeviceFileEvents with
ActionType = FileCreated/Modified on the monitored paths.
Adaptive application controls (Plan 2). Run in audit for 14 days to learn the app
baseline per VM group, then enforce. Skip on highly dynamic workloads (CI build agents).
Free 500 MB/day Log Analytics ingestion. Stream the security event set to a workspace
you can query from Sentinel — but keep the volume budget in mind; high-volume DCs blow past
500 MB easily.
Review the regulatory compliance dashboard (PCI, ISO 27001, NIST 800-53, CIS) monthly
and turn failed controls into Azure Policy assignments.
Guardrails
- Onboard hybrid via Arc, not local MDE script. Direct MDE onboarding bypasses Defender
for Cloud billing/posture and you lose JIT, FIM, agentless scan.
- Do not enable both Plan 1 and Plan 2 in the same scope. P2 supersedes P1; configure at
the highest scope and let inheritance work.
- JIT changes NSG rules, not Azure Firewall / NVA rules. If management traffic flows
through a firewall, JIT alone won't protect — add firewall policy.
- Agentless scan is point-in-time. It catches drift every 24h, not real-time. Keep MDE
on for runtime detection.
- FIM via MDE is the supported path. The legacy Log Analytics-agent FIM is deprecated —
do not architect new deployments around it.
- Do not run two AV engines active. If a third-party AV is primary, set Defender to
passive + EDR in block mode (see
defender-for-endpoint).
Common anti-patterns
- "We turned on Plan 1 everywhere to save money" then asked for FIM/JIT — those are P2
features. Move prod to P2.
- "MDE onboarded directly through GPO on Arc servers" — bypasses DfC, loses billing
integration, double-onboarded. Always via DfC auto-provisioning.
- "JIT request window = 24 hours, any source IP" — defeats the point. Cap at 3h, source
IP locked.
- "FIM enabled on every file path on every server" — alert fatigue. Tier-0 systems +
app-specific config paths only.
- "Adaptive application controls enforce on day one" — blocks legitimate admin tooling.
14 days audit, then enforce.
- "Skipped agentless scan because we already run MDE Vulnerability Management" — they're
complementary; agentless catches unmanaged disks and stopped VMs.
Example prompts
Plan Defender for Servers P1 vs P2 for a 2,000-VM estate split 70/30 prod/dev.
Onboard 500 on-prem Windows Servers via Arc and enable P2.
Roll out JIT VM access to all production Linux jump hosts with a 2-hour max window.
Configure FIM via MDE on tier-0 domain controllers — which paths and registry keys?
Stream Defender for Servers events into Sentinel using the 500 MB free allowance — what do we ingest?
Connect an AWS account with 300 EC2 instances and enable Defender for Servers P2.
Tune adaptive application controls for a fleet of IIS web servers.
Microsoft Learn
1---2name: defender-for-servers3description: Guidance for Microsoft Defender for Servers (Plan 1 and Plan 2) — server-specific protection in Microsoft Defender for Cloud. Covers plan selection, agentless vs agent-based scanning, MDE for Servers integration, file integrity monitoring (FIM via MDE), just-in-time VM access, vulnerability assessment, adaptive application controls, network hardening, and free data ingestion to Sentinel/Log Analytics. Applies to Azure VMs, Azure Arc-enabled servers (on-prem, AWS EC2, GCP Compute), and Azure VMSS. WHEN: Defender for Servers, MDE for Servers, server EDR, FIM, file integrity monitoring, JIT VM access, just-in-time access, agentless scanning servers, vulnerability assessment for VMs, hybrid server protection, Arc-enabled servers security, AWS EC2 in Defender for Cloud, GCP Compute in Defender for Cloud, server hardening Azure, Plan 1 vs Plan 2 servers. DO NOT USE for endpoint client devices (use defender-for-endpoint), generic Azure resource posture (use defender-for-cloud-hardening), or container hosts (use defe4license: MIT5---67# Microsoft Defender for Servers89Defender for Servers is the server-focused plan inside Microsoft Defender for Cloud. It extends10**Microsoft Defender for Endpoint (MDE)** to Azure VMs, Azure Arc-enabled machines (on-prem,11AWS EC2, GCP Compute), and VM Scale Sets, and adds server-specific controls: just-in-time VM12access, file integrity monitoring, agentless disk scanning, and vulnerability assessment.1314## When to use15Designing or hardening protection for **server workloads** — IaaS VMs, hybrid/multicloud16servers via Arc, jump hosts, domain controllers, line-of-business servers. Use this skill for17plan selection, MDE-for-Servers onboarding, FIM, JIT, and agentless vs agent-based scanning18trade-offs.1920**Do not use this skill** for client endpoints (`defender-for-endpoint`), AKS/container hosts21(`defender-for-containers`), Azure storage accounts (`defender-for-storage`), or generic22Defender for Cloud posture (`defender-for-cloud-hardening`).2324## Pick the plan2526| If you need... | Plan |27|---|---|28| Free foundational CSPM only (no server EDR) | **Defender CSPM** (no server plan) |29| MDE Plan 2 EDR, threat detection, free 500 MB/day Log Analytics ingestion | **Defender for Servers Plan 1** (per-server) |30| Everything in P1 plus FIM, JIT, agentless scanning, vuln assessment, adaptive app controls, network hardening, regulatory compliance, 500 MB free ingestion | **Defender for Servers Plan 2** |3132> **Rule of thumb:** Plan 1 = "I just need EDR everywhere." Plan 2 = "I need EDR + posture +33> compliance + FIM." Most enterprises pick **P2 for production, P1 for dev/test**.3435## Onboarding paths3637| Estate | Path |38|---|---|39| Azure VMs | Enable plan at subscription scope; auto-provisioning deploys MDE + Azure Monitor Agent |40| On-prem / VMware servers | **Azure Arc** onboarding, then enable plan |41| AWS EC2 / GCP Compute | Connect AWS account / GCP project to Defender for Cloud; auto-provisioning via Arc |42| VMSS (uniform) | Plan applies; agentless scan covers ephemeral instances |4344## Approach45461. **Inventory and connect first.** Onboard non-Azure servers via Arc before enabling the47 plan; otherwise you pay per-server but get no coverage on hybrid estate.48 *Verify: Defender for Cloud → Inventory shows all expected resources with a Defender plan49 column = Plan 1/2.*50512. **Enable Plan 2 at subscription scope** (not resource group) so new VMs inherit52 automatically. Use Azure Policy *Configure Microsoft Defender for Servers to be enabled*53 at the management group for multi-sub estates.54553. **Turn on auto-provisioning of MDE integration.** This pushes the MDE sensor via the56 unified solution; do **not** also onboard servers directly through Intune or local script —57 it causes telemetry duplication and double billing.58 *Verify: a sample VM appears in security.microsoft.com → Device inventory within 1 hour.*59604. **Enable agentless disk scanning.** Reads VM disk snapshots to find malware, secrets, and61 vulnerabilities without any agent — runs once per 24h, no performance impact.62 *Verify: Recommendations → "Machines should have a vulnerability assessment solution" green63 for VMs without MDE Vulnerability Management agent.*64655. **Configure JIT VM access** for any VM with management ports (RDP 3389, SSH 22, WinRM66 5985/5986). Default to 3-hour max request, source IP = requestor only.67 *Verify: NSGs show JIT-managed deny rules for the protected ports; access requests show in68 activity log.*69706. **File Integrity Monitoring** via MDE (the Log Analytics-based FIM is being retired).71 Enable on tier-0 servers (DCs, PKI, jump hosts) first. Tune the rule set — default72 includes Windows system files; add your app's config paths.73 *Verify: FIM events appear in MDE advanced hunting `DeviceFileEvents` with74 ActionType = FileCreated/Modified on the monitored paths.*75767. **Adaptive application controls** (Plan 2). Run in audit for 14 days to learn the app77 baseline per VM group, then enforce. Skip on highly dynamic workloads (CI build agents).78798. **Free 500 MB/day Log Analytics ingestion.** Stream the security event set to a workspace80 you can query from Sentinel — but keep the volume budget in mind; high-volume DCs blow past81 500 MB easily.82839. **Review the regulatory compliance dashboard** (PCI, ISO 27001, NIST 800-53, CIS) monthly84 and turn failed controls into Azure Policy assignments.8586## Guardrails87- **Onboard hybrid via Arc, not local MDE script.** Direct MDE onboarding bypasses Defender88 for Cloud billing/posture and you lose JIT, FIM, agentless scan.89- **Do not enable both Plan 1 and Plan 2 in the same scope.** P2 supersedes P1; configure at90 the highest scope and let inheritance work.91- **JIT changes NSG rules, not Azure Firewall / NVA rules.** If management traffic flows92 through a firewall, JIT alone won't protect — add firewall policy.93- **Agentless scan is point-in-time.** It catches drift every 24h, not real-time. Keep MDE94 on for runtime detection.95- **FIM via MDE is the supported path.** The legacy Log Analytics-agent FIM is deprecated —96 do not architect new deployments around it.97- **Do not run two AV engines active.** If a third-party AV is primary, set Defender to98 passive + EDR in block mode (see `defender-for-endpoint`).99100## Common anti-patterns101- **"We turned on Plan 1 everywhere to save money" then asked for FIM/JIT** — those are P2102 features. Move prod to P2.103- **"MDE onboarded directly through GPO on Arc servers"** — bypasses DfC, loses billing104 integration, double-onboarded. Always via DfC auto-provisioning.105- **"JIT request window = 24 hours, any source IP"** — defeats the point. Cap at 3h, source106 IP locked.107- **"FIM enabled on every file path on every server"** — alert fatigue. Tier-0 systems +108 app-specific config paths only.109- **"Adaptive application controls enforce on day one"** — blocks legitimate admin tooling.110 14 days audit, then enforce.111- **"Skipped agentless scan because we already run MDE Vulnerability Management"** — they're112 complementary; agentless catches unmanaged disks and stopped VMs.113114## Example prompts115- `Plan Defender for Servers P1 vs P2 for a 2,000-VM estate split 70/30 prod/dev.`116- `Onboard 500 on-prem Windows Servers via Arc and enable P2.`117- `Roll out JIT VM access to all production Linux jump hosts with a 2-hour max window.`118- `Configure FIM via MDE on tier-0 domain controllers — which paths and registry keys?`119- `Stream Defender for Servers events into Sentinel using the 500 MB free allowance — what120 do we ingest?`121- `Connect an AWS account with 300 EC2 instances and enable Defender for Servers P2.`122- `Tune adaptive application controls for a fleet of IIS web servers.`123124## Microsoft Learn125- Overview: https://learn.microsoft.com/azure/defender-for-cloud/defender-for-servers-introduction126- Plan features: https://learn.microsoft.com/azure/defender-for-cloud/plan-defender-for-servers-select-plan127- MDE integration: https://learn.microsoft.com/azure/defender-for-cloud/integration-defender-for-endpoint128- Just-in-time VM access: https://learn.microsoft.com/azure/defender-for-cloud/just-in-time-access-overview129- File Integrity Monitoring: https://learn.microsoft.com/azure/defender-for-cloud/file-integrity-monitoring-overview130- Agentless scanning for machines: https://learn.microsoft.com/azure/defender-for-cloud/concept-agentless-data-collection131- Adaptive application controls: https://learn.microsoft.com/azure/defender-for-cloud/adaptive-application-controls132- Connect AWS / GCP: https://learn.microsoft.com/azure/defender-for-cloud/multicloud133- Azure Arc onboarding: https://learn.microsoft.com/azure/azure-arc/servers/overview