Microsoft Defender for Cloud
Cloud and workloads

Exempt resources from recommendations

In brief

The exemption article’s metadata was refreshed, and its guidance on creating exemptions through the Defender for Cloud portal versus the Azure Policy API was updated.

What Defender admins need to know

Administrators creating exemptions should consult the updated guidance, particularly the requirement to create separate exemptions through the Azure Policy API for each initiative.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

  • Kusto Query Language (KQL)-based recommendations use standard assignments and don't use Azure Policy exemption events in the Activity Logs. To determine whether a recommendation is KQL-based or policy-based, open the recommendation in the portal and check the Assessment key field. KQL-based recommendations show a standard assessment key format and don't have an associated Azure Policy definition link. Policy-based recommendations display a direct link to the underlying policy definition.

  • When you create an exemption from the Defender for Cloud portal, Defender for Cloud identifies all initiatives that contain the recommendation and creates the exemption across all of them automatically. If you create the exemption through the Azure Policy API instead, you must create a separate exemption for each initiative manually. For more information, see Exemptions FAQ.

  • When you assign a new initiative that contains a recommendation with an existing exemption, the exemption doesn't carry over to the new initiative. Create a new exemption for the recommendation under the newly assigned initiative.