Microsoft Defender for Cloud
Cloud and workloads

Review and manage recommendation exemptions

In brief

The article now provides separate steps for reviewing exemptions from the Recommendations and Inventory pages, clarifies Resource Graph query guidance, and adds instructions for locating exemptions and cleaning up duplicates.

What Defender admins need to know

Administrators can use the updated guidance to verify exemption state, find exemptions before cleanup, and manage duplicate exemptions more easily.

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.

Review exempted resources in the portal

When you exempt a resource, it doesn't promptthe resource no longer triggers security recommendations. You can review and manage exempted resources in the Defender for Cloud portal.

Review exempted resources on the Recommendations page

To review exempted resources on the Recommendations page:

  1. Sign in to the Azure portal.

  2. Go to Defender for Cloud > Recommendations.

    :::image type="content" source="media/review-exemptions/exempted-resources.png" alt-text="Screenshot of the recommendations page that shows Recommendation status, Exempted, and Apply." lightbox="media/review-exemptions/exempted-resources.png":::

  3. Select a resource to review it.the exemption details.

Review exempted resources on the Inventory page

To review exempted resources on the Inventory page:

  1. Sign in to the Azure portal.

  2. Go to Defender for Cloud > Inventory.

Review exempted resources with Azure Resource Graph

Azure Resource Graph (ARG) provides instant access to resource information across your cloud environments with robust filtering, grouping, and sorting capabilities. You can quickly and easily run your first Resource Graph query in the Azure portal by using Kusto Query Language (KQL).

To view all recommendations that have exemption rules:

| where StatusDescription contains "Exempt"
```

To viewfind all policy exemptions forin a specific subscription, run the following query in Azure Resource Graph Explorer:Explorer. You can use this query to locate exemptions before cleanup or to verify exemption state:

policyresources

- **Check permissions.** Verify that you have delete permissions at the scope where the exemption was created, not just at the subscription level.

- **Check exemption state.** RunTo verify whether the exemption still exists and inspect its current state, run the following query in Azure Resource Graph Explorer to find exemptions:Explorer:

    ```kusto
    policyresources

### Clean up duplicate exemptions

To clean up duplicate exemptions in the Azure portal:

1. Sign in to the [Azure portal](https://portal.azure.com/).

1. Go to **Defender for Cloud** > **Environment settings** > **Exemptions**.

- Learn more about the playbook by reading the blog post [How to keep track of Resource Exemptions in Microsoft Defender for Cloud](https://techcommunity.microsoft.com/t5/azure-security-center/how-to-keep-track-of-resource-exemptions-in-azure-security/ba-p/1770580).
- Locate the ARM template in the [Microsoft Defender for Cloud GitHub repository](https://github.com/Azure/Azure-Security-Center/tree/master/Workflow%20automation/Notify-ResourceExemption).
- [Use this automated process][Deploy the resource exemption notification template](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2FAzure-Security-Center%2Fmaster%2FWorkflow%2520automation%2FNotify-ResourceExemption%2Fazuredeploy.json) to deploy all components.

<a name="next-step"></a>
## Next stepsteps

> [!div class="nextstepaction"]
> [Review security recommendations](review-security-recommendations.md)