Windows Server Labs

Lab 7: Microsoft Defender for Cloud (60 min)

In this lab your on-premises server gets the same protection as an Azure VM: security recommendations, a secure score, endpoint protection and alerts. And you trigger a safe test alert to see it end to end.

Two layers, two prices:

Cost note: Defender for Servers is not part of the Azure benefits. Turning it on starts a 30-day trial that can't be paused or extended. In a shared lab subscription, the instructor turns it on once, and turns it off after the session.

Steps

Part A — Instructor: turn on the plan

  1. Microsoft Defender for Cloud > Environment settings > select the lab subscription.
  2. Toggle Servers to On. It defaults to Plan 2; use Change plans to pick Plan 1 if you only need endpoint protection. Select Save.

Part B — Everyone: your server in Defender for Cloud

  1. Open your machine in Azure Arc > Extensions. After a while you see MDE.Windows — Defender for Endpoint, deployed automatically.
  2. In Defender for Cloud > Inventory, filter on your resource group. Select your server and look at its recommendations and their severity.
  3. Open Recommendations and pick one for your server. Read the remediation steps. Note which ones Lab 9 (OSConfig) will solve.
  4. Open Secure score and find your resource group's contribution.

Part C — Trigger a safe test alert

Microsoft documents two safe ways to check that detection works. Both create test alerts only.

  1. Sample alerts (fastest): in Defender for Cloud > Security alerts, select Sample alerts, pick the subscription and the Defender for Servers plan, then Create sample alerts. They appear after a few minutes, for simulated resources.
  2. A real test on your server: check that MDE.Windows is installed (step 3). Then, in Command Prompt as administrator on your VM, run the documented validation command:

powershell.exe -NoExit -ExecutionPolicy Bypass -WindowStyle Hidden $ErrorActionPreference = 'silentlycontinue';(New-Object System.Net.WebClient).DownloadFile('http://127.0.0.1/1.exe', 'C:\test-MDATP-test\invoice.exe');Start-Process 'C:\test-MDATP-test\invoice.exe'

The window closes by itself. It downloads nothing real — the address is the server itself. 9. Within about 10 minutes, open Security alerts. You see an alert for your server. Open it and look at the details: what, where, when, and the suggested response.

Check yourself

Customer talking points