Cyber Intelligence
Governance and Regulatory Compliance · part of 20-25% of exam

L4. Enforcing Compliance with Azure Policy and Microsoft Defender for Cloud Standards

Video generating

Check back soon for the video lesson on Enforcing Compliance with Azure Policy and Microsoft Defender for Cloud Standards

Course outlineLesson 4 of 18
SC-500 Exam Prep: course overview

Azure Policy stops non-compliant resources at deployment time, while Defender for Cloud continuously grades everything already running against the regulatory standards you actually have to answer to.

What Azure Policy Actually Does

Azure Policy evaluates resources against business rules and can enforce, audit, or remediate them, complementing Azure RBAC (which controls *who can act*) by controlling *what actions and configurations are allowed regardless of who performs them*.

Built-In vs. Custom Policy Definitions

  • Built-in definitions cover common needs out of the box (e.g., "Storage accounts should restrict network access," "Audit VMs that do not use managed disks")
  • Custom definitions are written in JSON when no built-in policy matches an organization-specific requirement, defining the resource condition to evaluate and the effect to apply

Policy Effects

EffectBehavior
DenyBlocks the non-compliant deployment outright
AuditLogs a compliance flag but allows the deployment
Append / ModifyAdds or changes a property on the resource during deployment (e.g., force a tag)
DeployIfNotExistsAutomatically deploys a companion resource if a required one is missing (e.g., auto-enable diagnostic settings)

Initiatives and Assignment Scope

An initiative (policy set) groups related policy definitions so they can be assigned together as one unit, commonly modeling an entire compliance framework. Assignments apply at a scope (management group, subscription, or resource group), and exemptions let you carve out a specific resource from an assignment without weakening the policy everywhere else, with a documented reason and optional expiration.

Defender for Cloud's Regulatory Compliance Dashboard

Once Defender for Cloud is enabled, every subscription is automatically measured against the Microsoft cloud security benchmark (MCSB) by default. From there you can add additional standards relevant to your industry, such as NIST SP 800-53, PCI DSS, ISO 27001, or SOC 2, and the dashboard shows pass/fail status per control, mapped back to the specific Azure resources and recommendations driving that control's compliance state.

Security Recommendations and Secure Score

Every failed check in Defender for Cloud becomes a recommendation: a specific, actionable fix (e.g., "Enable MFA for accounts with write permissions on this subscription"). Recommendations roll up into Secure Score, a single percentage summarizing your overall security posture, weighted by the relative risk-reduction impact of each recommendation, which gives leadership a trackable number instead of an unstructured list.

Remediation

For DeployIfNotExists and Modify policies, a remediation task applies the fix retroactively to resources that were already non-compliant before the policy existed, rather than only preventing new violations going forward. Defender for Cloud recommendations similarly often expose a "Fix" button that triggers the underlying remediation automatically where the platform supports it. Exam tip: Distinguish Azure Policy (a control-plane gate applied at deployment and continuously afterward, driven by effects like Deny) from Defender for Cloud's compliance dashboard (a continuous grading system against named regulatory standards, driven by recommendations and Secure Score). A scenario asking to *prevent* a specific misconfiguration from being deployed points to Azure Policy with a Deny effect; a scenario asking to *measure standing compliance against PCI DSS* points to the Defender for Cloud regulatory compliance dashboard.

Exam Focus Points
  • Azure Policy effects range from Audit (log only) to Deny (block deployment) to DeployIfNotExists (auto-remediate by deploying a companion resource)
  • Initiatives group related policy definitions into one assignable unit, commonly modeling an entire compliance framework
  • Exemptions carve a specific resource out of a policy assignment with a documented reason, without weakening the policy elsewhere
  • Every subscription is measured against the Microsoft cloud security benchmark by default in Defender for Cloud; additional standards like PCI DSS or NIST are added on top
  • Secure Score aggregates failed recommendations into a single weighted percentage reflecting overall security posture
Knowledge Check

1. A security team wants to guarantee that no new public storage account can ever be deployed, not just flagged after the fact. Which Azure Policy effect achieves this?

2. Which Defender for Cloud feature shows pass/fail status against named regulatory frameworks like PCI DSS or ISO 27001, mapped to specific resources?

3. A DeployIfNotExists policy was just created to require diagnostic settings on all storage accounts. What is needed to apply that fix to storage accounts that already existed before the policy?

Recommended: Pluralsight

This free course covers the theory. Pluralsight adds structured Cloud and AI Security Engineer learning paths, hands-on Azure and Defender for Cloud labs, and timed practice exams to make it stick before exam day.

Start SC-500 prep free10-day free trial · card required, cancel anytime before it renews