AZ-500Chapter 12 of 103Objective 4.1

Microsoft Defender for Cloud

This chapter covers Microsoft Defender for Cloud, a unified cloud security posture management (CSPM) and cloud workload protection platform (CWPP) for Azure, hybrid, and multi-cloud environments. For the AZ-500 exam, this topic is critical, appearing in approximately 20–25% of questions across Security Operations and other domains. You will need to understand its components, pricing tiers, secure score, regulatory compliance dashboard, workload protections, and integration with Microsoft Sentinel. This chapter provides the depth required to answer scenario-based questions accurately.

25 min read
Intermediate
Updated May 31, 2026

Defender for Cloud as a Building Security Team

Imagine a large office building with multiple tenants (subscriptions), each with their own floors (resources) and security guards (built-in controls). The building management hires a central security team (Microsoft Defender for Cloud) that monitors all floors via cameras (security assessments), alarms (alerts), and a central dashboard (Azure Security Center). This team doesn't replace each tenant's guards but adds continuous monitoring, vulnerability scanning, and automatic threat detection. They also provide recommendations: "Install a fire door on floor 3" (remediate a vulnerability) or "Lock the server room" (apply a security control). If a suspicious person is spotted, the team alerts the tenant and can automatically lock doors (auto-remediate). The team also tracks compliance with building codes (regulatory compliance) and provides a score (secure score) indicating overall security posture. Without this team, each tenant would have to manually inspect their floor, missing cross-floor threats and spending more time. The team's effectiveness depends on proper configuration—if cameras are off (disabled policies) or alerts ignored, the building remains vulnerable.

How It Actually Works

What is Microsoft Defender for Cloud?

Microsoft Defender for Cloud is a native Azure service that provides unified security management and advanced threat protection across Azure, on-premises, and other clouds (AWS, GCP). It combines two main capabilities: Cloud Security Posture Management (CSPM) and Cloud Workload Protection Platform (CWPP). The CSPM aspect continuously assesses your resources against security best practices, generates a secure score, and provides actionable recommendations. The CWPP aspect delivers integrated Microsoft Defender plans (formerly Advanced Threat Protection) for specific workloads like servers, databases, storage, containers, and app services.

Why it Exists

Before Defender for Cloud, organizations had to manually configure monitoring, assess vulnerabilities, and manage security policies across disparate tools. This led to gaps in visibility, delayed threat response, and inconsistent compliance. Defender for Cloud centralizes security policies, automates assessment, and provides a single pane of glass for security alerts, enabling faster remediation and improved security posture. It also helps meet regulatory compliance requirements by tracking adherence to standards like SOC 2, ISO 27001, PCI DSS, and more.

How it Works Internally

Defender for Cloud operates through a combination of agents, APIs, and Microsoft's threat intelligence. The Log Analytics Agent (or Azure Monitor Agent) is deployed on VMs to collect security events, configuration data, and performance metrics. For PaaS resources (e.g., SQL, storage), Defender uses the Azure Resource Manager and diagnostic logs to assess configurations. The service applies built-in security policies (or custom ones) defined in Azure Policy. These policies are grouped into initiatives, such as the Microsoft cloud security benchmark (formerly Azure Security Benchmark). The service continuously evaluates resources against these policies, generating compliance results and recommendations.

For threat detection, Defender for Cloud leverages Microsoft's Intelligent Security Graph, which aggregates signals from billions of endpoints, email, and identities. Behavioral analytics and machine learning models identify suspicious activities, such as anomalous logins, malware, or data exfiltration. When a threat is detected, a security alert is generated with recommended steps and can trigger automated responses via Azure Logic Apps or playbooks.

Key Components, Values, Defaults, and Timers

Secure Score: A percentage value from 0% to 100% that indicates your overall security posture based on control groups. Each recommendation has a maximum score; completing it adds that score to your total. The score is calculated as: (completed points / total possible points) * 100%. Default: no default score; it starts at 0%.

Security Policies: Built-in initiative "Microsoft cloud security benchmark" is assigned by default. Custom policies can be created via Azure Policy.

Defender Plans: Each plan has a separate pricing tier. Default: all plans are off (free tier provides basic CSPM). Turning on a plan incurs costs per resource (e.g., $15/node/month for servers).

Auto-provisioning: The Log Analytics agent is auto-deployed on new VMs by default when enabled. You can choose a workspace.

Alerts: Severity levels: High, Medium, Low, Informational. Alerts include a kill chain intent (e.g., Initial Access, Execution).

Regulatory Compliance: Predefined standards like SOC 2, PCI DSS 3.2.1, ISO 27001. You can add custom standards.

Continuous Export: Export alerts and recommendations to Log Analytics workspace, Event Hub, or storage account at intervals of 5 minutes (for real-time) or daily.

Workflow Automation: Triggers on alerts or recommendations with conditions; can run Logic Apps.

Configuration and Verification Commands

To enable Defender for Cloud via Azure CLI:

az security auto-provisioning-setting update --name default --auto-provision on
az security pricing create --name VirtualMachines --tier Standard

To view secure score:

az security secure-score list --query "[].{name:name, score:score.current, max:score.max}"

To list alerts:

az security alert list

To check policy compliance:

az vm show --name myVM --resource-group myRG --query "resources[?type=='Microsoft.Security/assessments']"

Interaction with Related Technologies

Azure Policy: Defender for Cloud uses Azure Policy to enforce and evaluate security controls. Custom policies created in Azure Policy appear in Defender for Cloud.

Microsoft Sentinel: Defender for Cloud can send alerts to Sentinel for SIEM and SOAR capabilities. Sentinel ingests alerts via the "SecurityAlert" table.

Azure Arc: Extends Defender for Cloud to on-premises and multi-cloud servers by connecting them via Azure Arc agents.

Azure DevOps: Defender for Cloud integrates with GitHub and Azure DevOps for code scanning and infrastructure-as-code security.

Microsoft Defender for Identity: Provides identity threat detection; alerts can be correlated in Defender for Cloud.

Microsoft Defender for Office 365: Similar integration for email and collaboration threats.

Step-by-Step Mechanism for Security Alert Generation

1.

Data Collection: The Log Analytics agent (or Azure Monitor Agent) on a VM collects security event logs (e.g., Event ID 4625 for failed logons).

2.

Ingestion: Logs are sent to the Log Analytics workspace associated with Defender for Cloud.

3.

Analysis: Defender for Cloud's detection engine applies rules and machine learning models. For example, if multiple failed logons from an unusual IP occur within 5 minutes, an alert may be triggered.

4.

Alert Generation: An alert is created with a severity, description, and recommended steps. It is stored in the Azure Security Center database.

5.

Notification: Alerts appear in the Azure portal, can be exported to SIEM, and can trigger automation (e.g., email via Logic App).

6.

Remediation: The user can follow the recommendation (e.g., enable MFA) or use a playbook to automatically respond (e.g., block IP via NSG).

Default Values and Timers

Log Analytics agent heartbeat: every 5 minutes.

Security assessment scan frequency: continuous (real-time) for configuration changes; vulnerability scans run weekly by default for VMs using built-in Qualys agent.

Alert retention: 90 days for free tier, 2 years for Standard tier (with Log Analytics retention).

Secure score refresh: within 15 minutes after a recommendation is completed.

Auto-provisioning: enabled by default when you turn on Defender for Cloud (if not already).

Walk-Through

1

Enable Defender for Cloud

Navigate to Microsoft Defender for Cloud in the Azure portal. On the Getting Started page, select 'Upgrade' to enable the enhanced security features (Standard tier) for your subscription. This activates all Defender plans. You can also choose to enable specific plans per resource type. The free tier provides basic CSPM only, with no threat detection. After enabling, the service automatically assigns the 'Microsoft cloud security benchmark' initiative and begins assessing resources.

2

Configure Auto-provisioning

In the Environment Settings, under 'Auto provisioning', ensure the Log Analytics agent (or Azure Monitor Agent) is set to 'On'. This automatically installs the agent on all existing and new VMs. You can select a Log Analytics workspace; if not specified, a default workspace is created per region. The agent collects security events, syslog, and performance data. Disabling auto-provisioning means you must manually install agents, leading to gaps in coverage.

3

Review Secure Score

The Secure Score dashboard shows your overall percentage and breakdown by control groups (e.g., 'Enable MFA', 'Remediate vulnerabilities'). Each recommendation has a maximum score. For example, enabling MFA for accounts with owner permissions might be worth 10 points. The score is calculated as (achieved points / total possible) * 100%. Click on any control group to see specific recommendations. Completing recommendations increases your score.

4

Respond to Security Alerts

When an alert is generated (e.g., 'Suspicious process executed'), investigate by clicking the alert. The alert details include the affected resource, kill chain stage, MITRE ATT&CK technique, and recommended steps. You can trigger a playbook (Logic App) for automated response, such as isolating the VM. You can also export alerts to Microsoft Sentinel for further analysis. Acknowledge or dismiss alerts after remediation.

5

Monitor Regulatory Compliance

The Regulatory Compliance dashboard shows compliance with standards like SOC 2, PCI DSS, ISO 27001. By default, Azure CIS 1.1.0 is assigned. You can add more standards via 'Security policy > Regulatory compliance standards'. The dashboard maps Azure Policy initiatives to controls and shows pass/fail status. For example, if a VM does not have disk encryption, it fails the 'Encryption at rest' control. You can download compliance reports.

What This Looks Like on the Job

Enterprise Scenario 1: Multi-Cloud Security Posture Management

A global retailer uses AWS and Azure. They deploy Defender for Cloud with Azure Arc to cover their AWS EC2 instances. The security team enables the free CSPM tier for all subscriptions and the Standard tier for critical workloads. They configure custom policies to enforce tagging and encryption standards. The secure score is used as a KPI for business units. They integrate Defender for Cloud with Microsoft Sentinel for centralized SIEM. A common issue is false positives from the Qualys vulnerability scanner; they fine-tune the scan schedule to weekly and exclude non-critical VMs. Performance impact is minimal, but they allocate a dedicated Log Analytics workspace to handle 10,000 VMs with 30-day retention.

Enterprise Scenario 2: Protecting a Containerized Application

A fintech startup runs Kubernetes (AKS) with microservices. They enable the Defender for Containers plan. This plan scans container images in ACR for vulnerabilities, detects runtime threats (e.g., privilege escalation), and monitors Kubernetes audit logs. They configure the Azure Policy add-on to enforce pod security policies. An alert triggers when a container attempts to mount the host filesystem. They use workflow automation to send a Slack message to the DevOps team. Misconfiguration occurs when they forget to enable the Defender plan for the ACR registry, missing image scans. They also learn that the container plan requires the Log Analytics agent on the AKS nodes, which they initially skipped.

Enterprise Scenario 3: Compliance Automation for Healthcare

A hospital must comply with HIPAA. They use Defender for Cloud's Regulatory Compliance dashboard to track compliance with the HIPAA/HITRUST standard. They assign the built-in HIPAA initiative and create custom policies for specific controls like audit log retention. They use continuous export to send compliance data to a Log Analytics workspace for custom reporting. A common mistake is not updating the standard to the latest version; Microsoft periodically updates the built-in standards, and you must manually reassign. They also discover that some recommendations (e.g., 'Enable MFA') are not automatically remediated; they use Azure Policy's 'DeployIfNotExists' effect to auto-enable MFA for all users.

How AZ-500 Actually Tests This

What AZ-500 Tests on Defender for Cloud

The exam covers objectives under Security Operations (30–35% of exam), specifically:

Configure and manage security policies (4.1)

Monitor security posture using Defender for Cloud (4.2)

Respond to security alerts (4.3)

Manage regulatory compliance (4.4)

You must know the difference between the free (CSPM) and Standard (enhanced security) tiers. The free tier provides secure score, recommendations, and basic compliance assessment. The Standard tier adds threat detection, vulnerability scanning, and just-in-time VM access.

Common Wrong Answers and Why Candidates Choose Them

1.

Confusing Defender for Cloud with Microsoft Sentinel: Both provide security monitoring, but Defender for Cloud is CSPM/CWPP, while Sentinel is a SIEM/SOAR. A question might ask 'Which service provides secure score?' Candidates incorrectly choose Sentinel. Remember: Secure score is unique to Defender for Cloud.

2.

Assuming all Defender plans are enabled by default: Only the free tier is default. Each plan (Servers, SQL, etc.) must be explicitly enabled and incurs cost. A question might say 'Enable threat detection for SQL databases' — the answer is to enable the 'Defender for SQL' plan, not just turn on Defender for Cloud.

3.

Mixing up secure score calculation: Secure score is not a simple average of completed recommendations. It is weighted by the maximum score of each control. A question might state 'Completing all recommendations gives 100% score' — false, because some controls may have zero max points if not applicable.

4.

Overlooking auto-provisioning: Many candidates think agents must be installed manually. The exam tests that auto-provisioning is enabled by default, but you can disable it. A scenario might ask 'Why are VMs not showing in inventory?' — answer: auto-provisioning is off.

Specific Numbers, Values, and Terms

Secure score range: 0% to 100%.

Default initiative: Microsoft cloud security benchmark.

Log Analytics agent heartbeat: 5 minutes.

Vulnerability scan frequency: weekly (Qualys agent).

Alert severity levels: High, Medium, Low, Informational.

Regulatory compliance standards: Azure CIS 1.1.0, SOC 2, PCI DSS 3.2.1, ISO 27001, HIPAA/HITRUST.

Pricing: Free (CSPM only), Standard (per resource).

Edge Cases and Exceptions

If a resource is deleted, its recommendations disappear from the secure score, potentially increasing the score percentage.

Secure score is calculated per subscription and per management group (aggregated).

Some recommendations are 'unhealthy' but have zero score impact (e.g., 'Apply service principal permissions').

For multi-cloud (AWS/GCP), you must connect via Azure Arc and enable the appropriate plans.

Just-in-time VM access is only available with the Standard tier and requires the VM to have a public IP.

How to Eliminate Wrong Answers

If the question mentions 'secure score' or 'compliance dashboard', the answer is Defender for Cloud, not Sentinel.

If it mentions 'threat detection for specific workloads' (e.g., SQL, containers), look for the specific Defender plan.

If it mentions 'automated response to alerts', think of workflow automation with Logic Apps, not Azure Policy.

If it mentions 'vulnerability scanning', it requires the Standard tier and Qualys agent (for VMs) or integrated scanner for containers.

Key Takeaways

Defender for Cloud has two tiers: Free (CSPM only) and Standard (enhanced security with threat detection).

Secure score is weighted; completing all recommendations does not guarantee 100% if some controls are not applicable.

Auto-provisioning of Log Analytics agent is enabled by default for VM data collection.

Each Defender plan (e.g., Servers, SQL, Storage) must be enabled separately and incurs cost.

Regulatory compliance standards are managed via Azure Policy initiatives; they must be reassigned to get updates.

Workflow automation uses Logic Apps to respond to alerts and recommendations automatically.

Defender for Cloud can monitor AWS and GCP resources via Azure Arc.

The Microsoft cloud security benchmark is the default security policy initiative.

Alerts can be exported to Microsoft Sentinel for advanced SIEM capabilities.

Vulnerability scanning for VMs uses the Qualys agent and runs weekly by default.

Easy to Mix Up

These come up on the exam all the time. Here's how to tell them apart.

Microsoft Defender for Cloud (CSPM + CWPP)

Provides secure score and recommendations for posture management.

Includes threat detection for specific Azure workloads (VMs, SQL, storage, etc.).

Native integration with Azure Policy for compliance.

Free tier available for basic CSPM.

Automated response via workflow automation (Logic Apps).

Microsoft Sentinel (SIEM/SOAR)

Centralized SIEM for log collection from multiple sources (on-prem, cloud, SaaS).

Advanced analytics and hunting with Kusto Query Language (KQL).

Incident management and SOAR capabilities.

Requires separate licensing (pay-as-you-go or commitment tiers).

Integrates with Defender for Cloud for alert ingestion.

Defender for Cloud Free Tier (CSPM only)

Provides secure score and recommendations.

Regulatory compliance assessment (limited standards).

No threat detection or vulnerability scanning.

No just-in-time VM access.

No adaptive application controls.

Defender for Cloud Enhanced Security (Standard Tier)

All free tier features plus threat detection.

Vulnerability scanning (Qualys agent for VMs).

Just-in-time VM access.

Adaptive application controls (allowlisting).

File integrity monitoring (FIM).

Watch Out for These

Mistake

Defender for Cloud automatically protects all resources without any configuration.

Correct

Only the free tier (CSPM) is automatically enabled. Enhanced security (threat detection, vulnerability scanning) requires enabling individual Defender plans and configuring auto-provisioning of agents.

Mistake

Secure score is the percentage of security recommendations you have completed.

Correct

Secure score is weighted: each recommendation has a maximum score based on its importance. Completing all recommendations yields 100% only if all controls are applicable. Some controls have zero max score if not relevant.

Mistake

Defender for Cloud is only for Azure resources.

Correct

Defender for Cloud supports AWS and GCP via Azure Arc. You can connect non-Azure machines and enable the same security assessments and threat detection.

Mistake

All security alerts require manual investigation and response.

Correct

Alerts can be automated using workflow automation (Logic Apps) to trigger responses like sending emails, creating tickets, or running remediation scripts.

Mistake

Regulatory compliance standards are automatically updated by Defender for Cloud.

Correct

Standards are updated by Microsoft, but you must reassign the initiative to your subscription to get the latest version. The dashboard does not auto-update.

Do You Actually Know This?

Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.

Frequently Asked Questions

How do I enable Defender for Cloud for my Azure subscription?

In the Azure portal, go to Microsoft Defender for Cloud. On the 'Getting Started' page, click 'Upgrade' to enable the enhanced security features. You can also enable specific Defender plans under 'Environment Settings' > 'Defender plans'. The free tier is automatically enabled for all subscriptions.

What is the difference between secure score and regulatory compliance score?

Secure score measures your overall security posture based on Microsoft's best practices, with a percentage from 0% to 100%. Regulatory compliance score shows your adherence to specific standards (e.g., SOC 2, PCI DSS) and is displayed as a percentage of controls passed. Both are in Defender for Cloud.

Does Defender for Cloud support AWS or GCP?

Yes. You can connect AWS and GCP accounts to Defender for Cloud using Azure Arc. This allows you to assess resources from those clouds using the same security policies and secure score. You need to enable the multi-cloud connector in Defender for Cloud.

How do I automate response to a security alert?

Use workflow automation in Defender for Cloud. Create a Logic App that performs actions (e.g., send email, block IP, create ticket). Then create a workflow automation rule that triggers on specific alerts or recommendations. The Logic App runs automatically when the condition is met.

Why are some VMs not showing in Defender for Cloud inventory?

Possible reasons: (1) Auto-provisioning is disabled, so the Log Analytics agent is not installed. (2) The VM is in a different region or subscription not covered by the Defender for Cloud scope. (3) The VM is not supported (e.g., classic VMs). (4) The agent is not reporting due to network connectivity issues.

What is the default security policy initiative in Defender for Cloud?

The default initiative is the 'Microsoft cloud security benchmark' (formerly Azure Security Benchmark). It includes controls like encryption, network security, and identity management. You can assign custom initiatives via Azure Policy.

How often is the secure score updated?

The secure score is recalculated within 15 minutes after a recommendation is completed or a resource changes. The dashboard refreshes automatically, but you can also click 'Refresh' to get the latest score.

Terms Worth Knowing

Ready to put this to the test?

You've just covered Microsoft Defender for Cloud — now see how well it sticks with free AZ-500 practice questions. Full explanations included, no account needed.

Done with this chapter?