0Pricing
Cloud & IT Cert Prep · Lesson

Microsoft Defender for Cloud

Enable Defender for Cloud to get a unified security posture score, view recommendations across subscriptions, and respond to active threats.

Microsoft Defender for Cloud is a free Cloud & IT Cert Prep lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cloud & IT Cert Prep learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

What Is Microsoft Defender for Cloud?

Microsoft Defender for Cloud is a unified cloud security posture management (CSPM) and workload protection platform. It continuously monitors your Azure resources, hybrid servers, and multi-cloud environments (AWS, GCP) for security misconfigurations, threats, and vulnerabilities. It provides a prioritised list of recommendations to harden your environment and actively detects attacks in progress.

Two Core Pillars

Defender for Cloud operates across two main pillars. Cloud Security Posture Management (CSPM) evaluates your resource configurations against security best practices and compliance frameworks, assigning a Secure Score to your subscription. Cloud Workload Protection (CWP) — enabled via Defender plans — adds active threat detection, vulnerability scanning, and just-in-time VM access to protect running workloads.

Secure Score Explained

The Secure Score is a numeric metric (0-100) that reflects the security posture of your subscription. Each security recommendation has a score impact; remediating higher-impact recommendations improves your score more. Microsoft benchmarks show that customers with higher Secure Scores experience fewer security incidents. The score dashboard breaks down by security control area (identity, network, data, etc.), helping you prioritise remediation efforts.

# View Secure Score via Azure CLI
az security secure-score list --output table

# View individual security recommendations
az security assessment list \
  --resource-group myRG \
  --output table

Enabling Defender Plans

Defender for Cloud has a free foundational CSPM tier (always on) and paid Defender plans for specific resource types. Plans include Defender for Servers (endpoint threat detection for VMs), Defender for Containers (Kubernetes threat detection and image scanning), Defender for Databases (SQL injection and anomalous access detection), Defender for Key Vault, and others. Each plan is billed per resource.

# Enable Defender for Servers on a subscription
az security pricing create \
  --name VirtualMachines \
  --tier Standard

Security Recommendations

When Defender for Cloud detects a misconfiguration, it creates a security recommendation. Each recommendation includes: a description of the issue, the list of affected resources, the severity (High/Medium/Low), the potential Secure Score increase if remediated, and remediation steps with a Quick Fix button for single-click remediation of simple fixes. Recommendations are mapped to the Microsoft Cloud Security Benchmark (MCSB).

Security Alerts and Incidents

When Defender for Cloud detects an active threat, it generates a security alert describing the attack, the affected resources, and recommended response steps. Related alerts from the same attack campaign are automatically correlated into a security incident, giving you a unified view of an attack's progression (the kill chain) rather than dozens of isolated alerts. Alerts can be routed to Microsoft Sentinel, Logic Apps, or email.

# List active security alerts
az security alert list \
  --location eastus \
  --output table

Just-In-Time VM Access

Just-In-Time (JIT) VM access (available in Defender for Servers) locks down management ports like RDP (3389) and SSH (22) at the NSG level when they are not in use. When an administrator needs access, they request it for a specific time window (e.g., 3 hours), from a specific source IP, through Defender for Cloud. The NSG rule is created for that window and automatically removed afterwards, eliminating the attack surface of always-open admin ports.

# Request JIT access to a VM
az security jit-policy update \
  --resource-group myRG \
  --vm-name myVM \
  --ports '[{"number":22,"protocol":"TCP","allowedSourceAddressPrefix":"203.0.113.10","maxRequestAccessDuration":"PT3H"}]'

Adaptive Application Controls

Adaptive Application Controls use machine learning to analyse which applications are running on your VMs and generate a recommended allowlist. You review and approve the list, and Defender for Cloud creates Windows AppLocker rules or Linux auditing rules to flag or block applications not in the approved set. This is a powerful tool against malware and ransomware that exploits unapproved software.

Regulatory Compliance Dashboard

Defender for Cloud includes a regulatory compliance dashboard that maps your security posture to specific frameworks such as ISO 27001, SOC 2, PCI DSS, NIST SP 800-53, and CIS Benchmarks. Each control in the framework is mapped to one or more Defender for Cloud recommendations. Auditors can view the dashboard to see how many controls pass and which require remediation, making compliance evidence gathering significantly faster.

Multi-Cloud and Hybrid Coverage

Defender for Cloud extends beyond Azure to provide security coverage for AWS and GCP resources through cloud connectors, and for on-premises servers via the Azure Arc agent. This gives a single pane of glass security view across hybrid and multi-cloud estates. Recommendations and Secure Score encompass non-Azure resources too, making it a genuinely unified security management platform.

# Connect an AWS account to Defender for Cloud
# (configured in Azure portal: Defender for Cloud > Environment settings > Add environment > AWS)

# Onboard on-premises servers via Azure Arc
az connectedmachine connect \
  --resource-group myRG \
  --name on-prem-server-01

Defender for Cloud Workflow Summary

The typical Defender for Cloud workflow is: Assess — review the Secure Score and open recommendations; Secure — remediate recommendations starting with the highest-impact ones; Defend — enable Defender plans to detect and respond to threats in real time. This iterative cycle continuously improves your security posture and reduces the likelihood and impact of security incidents over time.

Quick Check

Test your understanding of Microsoft Azure Fundamentals (AZ-900) concepts from this lesson.

Lesson Recap

In this lesson you learned: Defender for Cloud provides CSPM posture management via Secure Score and active threat protection via Defender plans, Just-In-Time VM access closes admin ports and opens them only on request, and the regulatory compliance dashboard maps your posture to frameworks like ISO 27001 and PCI DSS. Next up we explore Azure Key Vault for secrets and certificate management.

Frequently asked questions

Is the “Microsoft Defender for Cloud” lesson free?

Yes — the full text of “Microsoft Defender for Cloud” is free to read here on the web, and the Cloud & IT Cert Prep course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cloud & IT Cert Prep course, upgrade to CoddyKit PRO.

What will I learn in “Microsoft Defender for Cloud”?

Enable Defender for Cloud to get a unified security posture score, view recommendations across subscriptions, and respond to active threats. You practise Cloud & IT Cert Prep with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cloud & IT Cert Prep?

No prior experience is required. Cloud & IT Cert Prep on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Microsoft Defender for Cloud” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cloud & IT Cert Prep lesson?

Yes. Every Cloud & IT Cert Prep lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Microsoft Defender for Cloud
  2. Azure Key Vault
  3. Microsoft Sentinel: Cloud SIEM
  4. Azure DDoS Protection and Firewall
← Back to Cloud & IT Cert Prep