Skip to content

Security · Runbook

Defender for Cloud secure score: triage and exemptions

• 12 min read

How the Defender for Cloud secure score is calculated, what to fix first, and how exemptions can flatter the number. A runbook from Microsoft Learn.

  • Effort: 30-60 mins
  • Risk: Medium
  • Rollback: Partial: exemptions can be deleted; governance rules leave assignments in place; no Fix undo is documented

Applies to: Microsoft Defender for Cloud · Azure

On this page
  1. What it is
  2. How the classic score works
  3. Who this is for
  4. Why it matters
  5. Decisions to make
  6. Runbook
  7. Checks
  8. Rollback
  9. Common pitfalls
TL;DR

The Defender for Cloud secure score comes in two models that Microsoft Learn calls “completely different”: the classic score in the Azure portal and the risk-based Cloud secure score in the Defender portal. Know which one you are reporting. Work the high-value controls first, remediate whole controls rather than single resources, and treat every exemption as a decision with an owner and an expiry.

Source and what to verify

Checked on 2026-10-22 against these Microsoft Learn pages:

Confirm in your tenant before acting: which CSPM plan each subscription has, which roles your team holds, and whether a given recommendation supports Fix, Enforce, Deny or exemption. Learn does not give the Defender CSPM price on the concept page. It points to the Defender for Cloud pricing page and cost calculator.

What it is

Learn describes two secure score models.

  • Classic Secure Score (Azure portal). Points come from security controls. Only built-in recommendations from the Microsoft cloud security benchmark (MCSB) affect it. Learn says risk prioritization does not currently affect it.
  • Cloud secure score (Defender portal). It runs 0 to 100 and is based on the number and risk level of open recommendations, factoring in asset risk factors and asset criticality. Learn says higher-risk recommendations contribute most.

Learn is explicit that these are different models with different calculations and values. A number quoted from one is not comparable with the other.

How the classic score works

  • Calculated per control. Learn gives current score as score per resource multiplied by the number of healthy resources. Potential increase is score per resource multiplied by the number of unhealthy resources.
  • A control’s maximum score is fixed for every environment and shows its relative significance. Learn says to use it to decide what to work on first.
  • Learn says your score improves only when you remediate all of the recommendations in a control.
  • Recommendations flagged Preview are excluded from the score. Remediate them anyway so they count once they reach GA.
  • Learn says the Implement security best practices control does not affect the score.
  • Controls are recalculated every eight hours per Azure subscription or AWS/GCP connector. Recommendations update more often than controls, so resource counts can differ between the two.

Control maximums from Learn:

ControlMax score
Enable MFA10
Secure management ports8
Apply system updates6
Remediate vulnerabilities6
Remediate security configurations4
Manage access and permissions4
Enable encryption at rest4
Encrypt data in transit4
Restrict unauthorized network access4
Apply adaptive application control3
Protect applications against DDoS attacks2
Enable endpoint protection2
Enable auditing and logging1
Enable enhanced security features, Implement security best practices0

Learn does not rank the effort of fixing each control. That is your call, based on your estate.

Who this is for

  • Platform and security teams who report a secure score upward and get asked why it moved.
  • Teams with AWS or GCP connectors. Learn lists 30 June 2026 as the date over 200 new AWS and GCP recommendations contribute to Secure Score, and says a score change may reflect wider scope rather than degradation. The New tag marks recommendations added in the last 30 days, and View updates on the Secure Score card opens the change log. Confirm in your own tenant how this affected your numbers.
  • Anyone who has been handed a pile of exemptions and wants to know what they are doing to the score.

If you still need to decide which plans to enable, start with the Defender for Cloud baseline and come back here.

Why it matters

  • The number can be flattered. Learn says a mitigated exemption makes the resource count as healthy. A waiver excludes the resource from the calculation. Learn’s wording on the score effect of a mitigated exemption is inconsistent. One description is that no points are gained for the remediation and none are deducted. Another is that the score increases, and the review-exemptions page says the score increases. Test the real effect in your own tenant.
  • Partial fixes do not show. Fixing nine of ten resources in a control does not give the credit a full fix does.
  • Scope changes move it. Learn says multicloud recommendations affect Secure Score from 30 June 2026, so the scope of what is scored can change under you. Preview recommendations are excluded from the score.
  • Multi-subscription scores are weighted. Learn says the aggregated score is a weighted sum based on healthy plus unhealthy resource counts per subscription, not a simple average. You cannot recompute it by hand from the numbers in the UI.
  • Risk-based triage costs money. Learn says risk prioritization, attack path analysis, governance rules and custom recommendations are Defender CSPM only. Foundational CSPM (free) includes secure score, recommendations, MCSB and remediation tools.

Decisions to make

DecisionTrade-off from Learn
Which score do you report?Classic is control-based and works with Foundational CSPM. Cloud secure score is risk-based and needs Defender CSPM for the risk detail.
Defender CSPM or Foundational CSPM?Defender CSPM is billed on specific resources in the subscription or connector (for example VMs, storage accounts with blob containers or file shares, SQL servers and databases). Check the pricing page for the figure.
Mitigated or waiver exemption?Mitigated counts as healthy. Waiver excludes from the calculation. Use mitigated only when something else genuinely resolves the issue.
Expiry on exemptions?Optional in the portal. Learn says exempting at management group or subscription scope covers existing and future resources. With no expiry, that is permanent until someone deletes it.
Fix, Enforce or Deny?Fix remediates what exists. Enforce and Deny stop new non-compliant resources, but only for a subset of Azure recommendations.

Runbook

  1. Confirm which score you are looking at

    Classic: Azure portal > Microsoft Defender for Cloud > Recommendations > Switch to classic view. Learn also lists the Overview page, the dedicated Secure score page and the top of the Recommendations page.

    Cloud secure score: in the Defender portal, use Exposure Management > Secure score > View Cloud initiative, Exposure Management > Initiatives, or Cloud Infrastructure > Overview.

    Management groups where you lack permission show the score as Restricted. That is a permissions issue, not a low score.

  2. Record a baseline

    Note the overall score, the score per control and the date. Remember that controls are recalculated every eight hours, so compare like with like. For AWS and GCP, check View updates on the Secure Score card before you read anything into a change.

  3. Check the CSPM plan

    Learn says that without Defender CSPM the risk columns are blurred and risk levels are not available. Recommendations themselves are included with Defender for Cloud. Decide per environment whether risk prioritization is worth the plan cost.

  4. Triage the recommendations

    In the Azure portal, go to Defender for Cloud > Recommendations. Learn lists filters for Exposed asset, Asset risk factors, Environment, Workload and Recommendation maturity, plus views for All recommendations, Misconfigurations, Vulnerabilities and Exposed Secrets. Risk level appears as the sort order and in the risk columns, not as a named filter on this page.

    In the Defender portal, go to Exposure Management > Recommendations > Cloud. The summary cards show Cloud secure score, Score history (last seven days) and Recommendations by risk level.

    Learn gives these risk levels: Critical, High, Medium, Low and Not evaluated. It says they come from each resource’s configuration, network connections and security posture. By default recommendations are prioritised by risk level. Learn also says to prioritise the security controls in the default MCSB standard, because those affect the Secure Score.

    Group by title for estate-wide triage. Group by resource when one owner needs everything for their asset. A recommendation’s Graph tab shows the context used for risk prioritization, including attack paths.

    For the classic score, use the control maximums above. The MFA control is the largest on the list.

  5. Remediate whole controls

    Open a recommendation and use Take action. Learn says a Fix button appears only on some recommendations, and that it can remediate multiple resources. Use View remediation logic before you apply it. If there is no Fix button, follow the manual remediation steps. Status can take several minutes to update after remediation.

    Learn does not state prerequisites or a specific role for Fix, and does not document an undo path. Test on a non-production subscription first.

    Finish the control. Learn says the score improves only when all recommendations in it are remediated.

  6. Stop it coming back with Enforce or Deny

    Learn says Deny prevents deployment of non-compliant resources, and Enforce uses the DeployIfNotExist effect to auto-remediate at creation. Both apply only to Azure recommendations and a subset of them. Deny can therefore block deployments and Enforce can deploy remediation, so test both outside production first.

    • Enforce: Recommendations, select the recommendation, Enforce, Save. Learn says it takes effect immediately, but recommendations update on their freshness interval, up to 12 hours.
    • Deny: Environment settings > Security policies > MCSB > Manage recommendations > Manage effect and parameters > Deny.

    Learn describes Security admin as able to update security policies, but the page does not name a specific role for the Enforce button. Confirm what your admins need. For the policy side, see the Azure Policy baseline on audit-first rollout.

  7. Create exemptions deliberately

    Learn says you need Owner or Security Admin on the scope. Creating a rule also needs permission to edit policies in Azure Policy. The required actions include Microsoft.Authorization/policyExemptions/write, /delete, /read and Microsoft.Authorization/policyAssignments/exempt/action. If any are missing, the Exempt button might be hidden.

    1. Go to Azure portal > Defender for Cloud > Recommendations and select a recommendation.
    2. Select Exempt.
    3. Choose the scope and enter a name.
    4. Set an expiration date. It is optional, so set one anyway.
    5. Select a category: Resolved through third-party service (mitigated) or Risk accepted (waiver).
    6. Add a description that says who approved it and why, then select Create.

    Limits and prerequisites from Learn:

    • Up to 5,000 resource exemptions per subscription.
    • MCSB must be assigned on the subscription.
    • Custom recommendations cannot be exempted.
    • Preview recommendations might not support exemptions, and some MCSB recommendations do not support them at all.
    • An exemption can take up to 24 hours to take effect. Exempted recommendations are hidden by default because the default status filter excludes Not applicable.

    Learn recommends creating exemptions in the Defender for Cloud portal rather than through the Azure Policy API. The portal applies the exemption across all initiatives that contain the recommendation. An API-created exemption has to be made per initiative.

    Learn also says disable rules are being deprecated in favour of exemptions.

  8. Assign owners and due dates (Defender CSPM)

    Governance rules need the Defender CSPM plan, plus Contributor, Security Admin or Owner on the Azure subscriptions or AWS/GCP connectors. Go to Defender for Cloud > Management > Environment settings > Governance rules > Create governance rule.

    • Priority runs from 1 (highest) to 1000.
    • Rules can match by severity, risk level, recommendation category or specific recommendations.
    • The owner is set by resource tag or email address.
    • Due dates are 7, 14, 30 or 90 days after the rule triggers the recommendation.
    • Exclusions can only be defined through the API.

    Learn says owners get weekly emails listing on-time and overdue tasks, and the owner’s manager is emailed about overdue items if found in Microsoft Entra ID. A grace period for MCSB recommendations stops them affecting Secure Score until they reach the Overdue state. That delays the score impact. It does not remove the recommendation.

  9. Review exemptions on a schedule

    Learn says that as of January 2026 exemptions are managed centrally: Defender for Cloud > Environment settings > Exemptions, or Azure Policy > Exemptions. Reading them needs Microsoft.Authorization/policyExemptions/read at the right scope.

    To list exempted resources, use Recommendations > Recommendation status > Exempted > Apply. On Inventory, use Add filter > Contains exemptions > Yes. For audit and cleanup across a subscription, Learn gives an Azure Resource Graph query on the policyresources table for type microsoft.authorization/policyexemptions. Take the full query from the Learn page.

    Keep one exemption per resource and recommendation. Learn warns that duplicates can cause conflicting status.

  10. Report at scale

    Learn lists these ways to query the classic score: Azure Resource Graph (the SecurityResources table, types microsoft.security/securescores and microsoft.security/securescores/securescorecontrols), the Secure Scores and Secure Score Controls REST APIs, the Secure Score Over Time workbook, and Power BI. Take exact query syntax from the Learn page.

Checks

  • You can say in one sentence whether your report uses the classic score or the Cloud secure score.

  • Baseline score and per-control scores are recorded with a date.

  • Each subscription's CSPM plan (Foundational or Defender CSPM) is known, and risk columns are visible where you expect them.

  • Controls you worked on are fully remediated, not partly.

  • Every exemption has an owner, a category, a description and an expiry (or a recorded reason for none).

  • Exemption count per subscription is well under the 5,000 limit.

  • No duplicate exemptions exist for the same resource and recommendation.

  • Mitigated exemptions are backed by evidence of the third-party control.

  • Score changes after 24 hours (exemptions) and after the next eight-hour recalculation (controls) have been explained.

  • Governance rules, if used, have been tested on a small scope.

Rollback

Plan the way back before you start, and test it outside production.

  • Exemption: delete it. That needs Microsoft.Authorization/policyExemptions/delete at the scope where it was created. Learn says previously exempted resources are re-evaluated, may return to Unhealthy and lower the score, and re-evaluation can take up to 24 hours. Tell whoever reports the score before you do this in bulk.
  • Deny and Enforce: the Manage the Microsoft Cloud Security Benchmark page lists Audit as the option that turns a recommendation on, Disabled as the option that turns it off, and Deny as the option to deny or enforce. Change the effect in Manage effect and parameters and check the result on a non-production scope first.
  • Governance rule: Learn says when you delete or disable a rule, existing assignments and notifications remain. Plan to clean those up separately.
  • Fix: Learn does not document an undo path. Check the remediation logic first.

Common pitfalls

  • Comparing the two scores. They use different calculations and values. Pick one and label it.
  • Chasing partial fixes. Points come when all recommendations in a control are remediated.
  • Reading a drop as a regression. New multicloud recommendations, exemptions being removed and recalculation timing can move the number. Preview recommendations are excluded from the score, so they are not the cause. Check View updates and the New tag first.
  • Exempting to make the number green. A mitigated exemption counts as healthy. Learn’s wording on the score effect is inconsistent: one description is that no points are gained or deducted, another is that the score increases. Test in your own tenant and do not promise a figure to anyone.
  • No expiry. An exemption at subscription or management group scope covers future resources too and lasts until deleted.
  • Expecting instant results. Exemptions can take up to 24 hours, Enforce can take up to 12 hours to show in recommendations, and controls recalculate every eight hours.
  • Missing Exempt button. Check the RBAC actions listed above before assuming the recommendation cannot be exempted.
  • Assuming grace periods fix anything. They delay score impact until the Overdue state. The recommendation is still there.
  • Expecting risk columns on Foundational CSPM. They are blurred without Defender CSPM.
  • Using Enforce or Deny on AWS or GCP. Learn says they apply only to Azure recommendations.
  • Reconstructing the multi-subscription score. It is a weighted sum. Do not average the percentages.