Dev.to Security 🔐 Cybersecurity 👁 0 📖 10 min read

You switched on Defender for Cloud. Half the servers never showed up.

Source: CD's readiness notes MDC-Readiness/Week One/Onboarding.md (auto-provisioning, MMA vs AMA, Arc for non-Azure, "heartbeat but no security events"), rebuilt as a lab story and cross-checked against Microsoft Learn o

You switched on Defender for Cloud. Half the servers never showed up.

Source: CD's readiness notes MDC-Readiness/Week One/Onboarding.md (auto-provisioning, MMA vs AMA, Arc for non-Azure, "heartbeat but no security events"), rebuilt as a lab story and cross-checked against Microsoft Learn on 2026-10-28. Lab names only; screens are drawings. Plan prices are the commonly published list figures; Microsoft's pricing page renders them dynamically, so confirm in the pricing calculator before publishing.

In September Contoso's IT lead did what the audit asked: open Defender for Cloud, pick sub-lab-prod, Enable all, Save. The dashboard turned green-ish and the invoice went up by about $1,800 a month.

In October the auditor asks for the server list. 120 servers in the inventory. 60 say Not protected or are simply not there. The on-prem file servers never appeared. The old runbook says "wait for the Log Analytics agent to install", but that recommendation no longer exists. And the second IT admin, who was told to "check it", can see the dashboard but cannot change anything, so she assumes it is working.

Contoso is paying Plan 2 for 120 servers and protecting 60.

TL;DR

  • Problem: enabling a Defender for Servers plan is a billing decision at subscription level. Protection on each server is a separate chain: the right role to enable, the plan on the right subscription, the Defender for Endpoint integration switched on, agentless scanning switched on, Azure Arc for machines outside Azure. Any missing link means a server that is billed but not protected.
  • Who it hurts: the budget owner (paying for servers that are not protected), the admin with the wrong role (sees green, cannot act), the auditor (list does not match), the SOC (no EDR alerts from half the estate), and the product ("Defender does nothing").
  • Fix: one person with Owner on the subscription enables the plan once; Security Admin for day-to-day; the two toggles under Settings & monitoring on; Arc agent on every non-Azure machine; a Resource Graph query that lists every server with its plan and extension state.
  • Cost: Plan 1 about $5, Plan 2 about $15 per server per month; Plan 2 carries a pooled 500 MB per machine per day of free log ingestion. The lab went from $1,800 paid for 60 protected servers to $1,000 for 120 protected, by mixing Plan 1 and Plan 2.
  • Prove it: 120 of 120 in inventory, MDE.Windows/MDE.Linux extension Succeeded on every VM and Arc machine, a test alert from one of the formerly missing servers.

Table of contents

  • 1. The problem
  • 2. Who gets hurt
  • 3. Cost and value
  • 4. How to fix it
  • 5. Prove it
  • Gotchas
  • Checklist
  • What changed recently
  • Sources

1. The problem

Buying a building-wide alarm contract does not put a sensor in every room. Someone still has to walk the floors, and some rooms are in a different building.

Defender for Cloud works the same way:

Layer What it is Where it goes wrong
Plan (per subscription) "Bill me for Servers Plan 2 on sub-lab-prod" Enabled on the wrong subscription; the person had Reader and the click silently did nothing
Integration (per subscription) Defender for Endpoint integration, agentless scanning, Azure Update Manager Toggles off = no EDR sensor, no vulnerability scan, no update assessment, same bill
Machine Azure VM, or Arc-enabled server for anything outside Azure On-prem and other-cloud servers without Arc are invisible
Extension MDE.Windows / MDE.Linux pushed by the integration Blocked egress, old OS, stuck provisioning

Four layers between "Enable all" and a protected server

My notes from the Log Analytics agent era had a fifth layer, the MMA/AMA agent and its auto-provisioning. That layer is gone: the Log Analytics agent retired in November 2024, and Defender for Servers now gets its features from the Defender for Endpoint sensor, agentless scanning and the guest configuration extension. The runbook that waits for "Log Analytics agent should be installed" waits forever.

2. Who gets hurt

Who What they lose
Budget owner Plan 2 is billed per machine in the subscription whether or not the sensor landed. 60 unprotected servers × $15 = $900 a month for nothing.
The second admin With Reader she sees the dashboard, alerts and recommendations, and nothing tells her she cannot enable or fix anything. Green with no power.
Auditor / compliance "All servers have EDR" is the control. The inventory says 60 of 120.
SOC No alerts from the on-prem file servers and the DMZ web tier, the two places attackers like most.
The product "We turned on Defender and it did nothing" is the memory that survives.

3. Cost and value

Prices are USD list per server per month, as commonly published for 2026; Microsoft's pricing page loads the figures dynamically, so confirm in the Azure pricing calculator for your region and agreement (checked 2026-10-28).

Plan Price What you get
Foundational CSPM Free Secure score, recommendations, inventory, asset view
Defender for Servers Plan 1 about $5 Defender for Endpoint EDR through the integration, alerts into Defender for Cloud
Defender for Servers Plan 2 about $15 Plan 1 + agentless scanning (vulnerabilities, malware, secrets), premium Defender Vulnerability Management, regulatory compliance, file integrity monitoring, just-in-time VM access, OS baseline and update assessment, and a pooled 500 MB per machine per day free ingestion of security data
Defender CSPM about $5 per billable resource Attack paths, cloud security explorer, agentless posture across clouds (not needed to fix this story)

Lab, 120 servers:

Option Monthly Protected
Before: Plan 2 on everything, half not onboarded $1,800 60
Plan 2 on everything, all onboarded $1,800 120
Plan 2 on 40 crown-jewel servers (DCs, file, SQL), Plan 1 on 80 web/app, all onboarded $1,000 120

Plan 1 can be enabled per resource (policy, script or API with sub-plan P1); Plan 2 cannot, but it can be disabled per resource. So the mixed option is: Plan 2 at subscription level, disabled on the 80 machines that only need EDR, Plan 1 on those via a tag-driven policy.

Free ingestion is money too. 40 Plan 2 machines × 500 MB = 20 GB a day of SecurityEvent, WindowsEvent (security stream), SecurityAlert, file-integrity and baseline tables at no charge, pooled across the subscription. At Sentinel analytics prices (about $4.30 per GB) that is up to $2,500 a month of ingestion you do not pay, if those machines actually report to the workspace.

How others price it. Wiz, CrowdStrike Falcon Cloud Security and Prisma Cloud sell cloud workload protection per workload or per credit on a quote; none publishes a per-server list price. Every one of them has the same four layers (licence, integration, agent, machine) and the same failure mode when a layer is skipped.

4. How to fix it

Lab: tenant contoso.com, subscriptions sub-lab-prod (80 Azure VMs) and sub-lab-dmz (10 VMs), 30 on-prem servers in rg-lab-arc.

Step 1: the right role, once. Enabling or disabling a plan needs Security Admin, or Contributor / Owner on the subscription (resource-group Contributor is not enough). The first enablement and the extensions it pushes need Owner on the subscription. Reader and Security Reader see everything and change nothing, without an error. In the lab the first click was made by a Reader; nothing was enabled on sub-lab-dmz.

Who can see, who can enable: the roles that matter

Step 2: the plan, on every subscription that has servers. Environment settings → each subscription → Defender plans → Servers: On, pick the sub-plan. Save. Repeat on sub-lab-dmz. For many subscriptions, assign at the management group with the built-in policy Configure Microsoft Defender for Servers to be enabled.

Step 3: the integrations. Same page → Settings & monitoring:

  • Endpoint protection (Defender for Endpoint integration): On. This pushes MDE.Windows / MDE.Linux to every supported machine and onboards it to Defender for Endpoint with no extra licence.
  • Agentless scanning for machines: On (Plan 2). Vulnerabilities, malware and secrets from disk snapshots, no agent, no network dependency.
  • Guest configuration agent: On, for OS baseline findings.

Settings & monitoring: the two toggles that were off

Step 4: Arc for the 30 on-prem servers. Generate the onboarding script from Azure Arc → Servers → Add, run it on each server (or push with the deployment tool you already have), target rg-lab-arc in sub-lab-prod. An Arc-enabled server is a resource like a VM; the plan and the integration apply to it. If you cannot Arc a machine, install the Defender for Endpoint sensor directly: Plan 1 features still work, Plan 2 gives only the premium vulnerability management part.

Step 5: egress. The MDE.Windows extension needs the Defender for Endpoint cloud endpoints (*.endpoint.security.microsoft.com and the regional ones listed in the Defender for Endpoint proxy doc). The DMZ tier was blocked; 15 extensions sat at Transitioning for weeks.

5. Prove it

Azure Resource Graph, run across both subscriptions:

// 1. Which subscriptions actually have the plan
securityresources
| where type == "microsoft.security/pricings"
| where name == "VirtualMachines"
| project subscriptionId, tier = tostring(properties.pricingTier), subPlan = tostring(properties.subPlan)
// 2. Every server and its MDE extension state
resources
| where type in~ ("microsoft.compute/virtualmachines", "microsoft.hybridcompute/machines")
| project id, name, kind = type, subscriptionId
| join kind=leftouter (
    resources
    | where type in~ ("microsoft.compute/virtualmachines/extensions", "microsoft.hybridcompute/machines/extensions")
    | where name in~ ("MDE.Windows", "MDE.Linux")
    | project vmId = tolower(substring(id, 0, indexof(id, "/extensions/"))), ext = name, state = tostring(properties.provisioningState)
) on $left.id == $right.vmId
| summarize count() by state

Target: Succeeded = 120, nothing else. Then:

  1. Inventory in Defender for Cloud shows 120 servers, 0 Not protected.
  2. The on-prem file server LAB-FS-01 appears as an Arc machine with Defender for Endpoint status Onboarded in the Defender portal.
  3. Run the Defender for Endpoint test (the documented EICAR-style detection test) on LAB-FS-01: an alert in Defender for Cloud and the Defender portal within minutes.
  4. Cost analysis next month: Servers Plan 2 meter counts 40 machines, Plan 1 counts 80.

Inventory before and after: 60 of 120, then 120 of 120

Gotchas

  • Reader is a silent no. The plan page lets you click; Save fails quietly or the toggle snaps back. Check the role before blaming the product.
  • Plan 2 is per subscription, Plan 1 is per resource. You cannot "P2 only these ten"; you can P2 the subscription and disable it on the rest.
  • Billed per machine, not per sensor. A VM in a Plan 2 subscription is charged whether or not MDE.Windows ever installed. Onboarding gaps are pure waste.
  • The Log Analytics agent is gone. Recommendations and runbooks that depend on MMA auto-provisioning stopped in November 2024. Do not install it.
  • The 500 MB benefit needs the workspace link. It applies to machines reporting through AMA, the Defender for Endpoint sensor or agentless FIM to the workspace where Plan 2 is on. Machines reporting to two workspaces get it on one.
  • Trial. Everything is free for 30 days (except malware scanning in Defender for Storage). The bill starts on day 31 whether you finished onboarding or not.
  • Agentless scanning needs disk snapshots. It fails on disks with customer-managed keys unless the key permissions are granted; those machines show Not scanned with a reason.
  • Time. Recommendations appear within minutes of enabling; the extension rollout and the first agentless scan take up to 24 hours. Judge on day 2, not on minute 5.

Checklist

  • [ ] Owner on each subscription did the first enablement; Security Admin for day-to-day
  • [ ] Servers plan On in every subscription that holds servers (or via management-group policy)
  • [ ] Settings & monitoring: Endpoint protection On, Agentless scanning On, Guest configuration On
  • [ ] Arc agent on every non-Azure server, in a resource group the plan covers
  • [ ] Egress to Defender for Endpoint endpoints open from every tier
  • [ ] Resource Graph: plan per subscription, extension state per machine, 100% Succeeded
  • [ ] Plan 1 / Plan 2 split decided per server class, disabled per resource where Plan 2 is not needed
  • [ ] Test detection on a formerly missing server; cost analysis matches the split

What changed recently

Checked against Microsoft Learn on 2026-10-28:

  • My notes centre on the Log Analytics agent (MMA), auto-provisioning and "Install MMA & AMA" labs. The MMA retired in November 2024 (deprecation page updated 2026-07-03); Defender for Servers features now come from the Defender for Endpoint integration, agentless scanning, the guest configuration extension and Azure Update Manager, with no dependency on MMA or AMA. Adaptive application controls were dropped with no replacement.
  • The 500 MB per machine per day benefit survived, now pooled per subscription and granted through AMA, the Defender for Endpoint sensor or agentless FIM (benefit page updated 2026-09-29), with an explicit table list.
  • The roles table (permissions page updated 2026-06-17) states that Security Admin, subscription Contributor or Owner can enable plans, and that Owner is needed to enable all capabilities of a plan. Resource-group Contributor cannot enable plans at all.
  • Plan selection page (updated 2026-06-17) confirms Plan 1 per-resource enablement (policy, script, API sub-plan P1) and Plan 2 subscription-only with per-resource disable. Direct Defender for Endpoint sensor without Arc is supported with reduced Plan 2 features.
  • The 30-day free trial still stands; malware scanning in Defender for Storage is excluded from it (subscription page updated 2026-07-28).
  • The per-plan prices are not readable from Microsoft's static pricing page; the figures above are the published list prices quoted across partner and licensing sources in 2026. Use the pricing calculator for the contract number.

Sources

Cheat sheet: four layers between Enable all and a protected server

Thanks for reading! I'm Cuong, and on CD Security Lab I rebuild real Microsoft security cases in a safe lab and explain them simply. Follow along:

Got a question about your own tenant? Drop it in the comments.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.