Workflow automation in Microsoft Defender for Cloud
In brief
The article now clarifies Logic Apps navigation, legacy trigger guidance, DeployIfNotExist policy behavior, and data schema access. It also improves headings, links, screenshots, and accessibility text.
What Defender admins need to know
Administrators can follow clearer instructions when configuring workflow automations and locating event schemas. No action is required.
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.
Automate remediation responses in Microsoft Defender for Cloud
Every security program includes multiple workflows for incident response. These processes might include notifying relevant stakeholders, starting a change management process, and applying specific remediation steps.
Security experts recommend that you automate as many steps of security procedures as you can. Automation reduces overhead. It can also improve your security by ensuring process steps are done quickly, consistently, and according to your predefined requirements.
This article describes the workflow automation feature of Microsoft Defender for Cloud. ThisThe workflow automation feature can trigger consumption logic apps on security alerts, recommendations, and changes to regulatory compliance. For example, you might want Defender for Cloud to email a specific user when an alert occurs. You'll also learn how to create logic apps by using Azure Logic Apps.
Prerequisites
:::image type="content" source="media/workflow-automation/visit-logic.png" alt-text="Screenshot that shows the Actions section of the Add workflow automation screen and the link to go to Azure Logic Apps." border="true":::
You are taken toSelecting **visit the Logic Apps page** opens Azure Logic Apps.
Select (+) Add.
Review the information you entered, and then select Create.
In your new logic app, you can choose from built-in, predefined templates from the security category. Or you can define a custom flow of events that occur when
this process is triggered.the workflow automation runs.
- When a Defender for Cloud regulatory compliance assessment is created or triggered: You want to trigger automations based on updates to regulatory compliance assessments.
- After you define your logic app, return to the Add workflow automation pane.
To manually run a logic app, open an alert or a recommendation, and then select Trigger logic app.
Configure workflow automation at scale
When you automate your organization's monitoring and incident response processes, the time it takes to investigate and mitigate security incidents can greatly improve.
To deploy your automation configurations across your organization, use the supplied Azure Policy DeployIfNotExist policies (mentioned later)described in the following table. The DeployIfNotExist policy effect automatically deploys required resources when they don't already exist, allowing you to create and configure workflow automation procedures.procedures at scale.
Get started with workflow automation templates.
| Workflow automation for security recommendations | [Deploy Workflow Automation for Microsoft Defender for Cloud recommendations](https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyDetailBlade/definitionId/%2Fproviders%2FMicrosoft.Authorization%2FpolicyDefinitions%2F73d6ab6c-2475-4850-afd6-43795f3492ef) | 73d6ab6c-2475-4850-afd6-43795f3492ef |
| Workflow automation for regulatory compliance changes | [Deploy Workflow Automation for Microsoft Defender for Cloud regulatory compliance](https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyDetailBlade/definitionId/%2Fproviders%2FMicrosoft.Authorization%2FpolicyDefinitions%2F509122b9-ddd9-47ba-a5f1-d0dac20be63c) | 509122b9-ddd9-47ba-a5f1-d0dac20be63c |
You can also find policies by searching Azure Policy. In Azure Policy, select **Definitions**, and then search for themthe policies by name.
On the relevant Azure Policy page, select Assign.
:::image type="content" source="./media/workflow-automation/export-policy-assign.png" alt-text="Screenshot
that shows how to assignof the Azurepolicy.Policy page with the Assign option highlighted.":::On the Basics tab, set the scope for the policy. To use centralized management, assign the policy to the Management Group that contains the subscriptions that use the workflow automation configuration.
Review the summary page, and then select Create.
Data typestype schemas for workflow automation
To view the raw event schemas of the security alerts or recommendations events that are passed to the logic app, go to the data types schemas for workflow automation. This processViewing the raw event schemas can be useful in cases wherewhen you aren't using the built-in Defender for Cloud built-in Logic Apps connectors (mentioned previously), butand are instead are using the generic HTTP connector. You can use the event JSON schema to manually parse it as you see fit.
Related content
@@ -1,18 +1,19 @@ ----title: Workflow automation+title: Workflow automation in Microsoft Defender for Cloud description: Learn how to create and automate workflows in Microsoft Defender for Cloud.-ms.date: 10/19/2025+ms.date: 07/03/2026 ms.topic: how-to ai-usage: ai-assisted+ms.custom: msecd-doc-authoring-1013 --- -# Automate remediation responses+# Automate remediation responses in Microsoft Defender for Cloud Every security program includes multiple workflows for incident response. These processes might include notifying relevant stakeholders, starting a change management process, and applying specific remediation steps. Security experts recommend that you automate as many steps of security procedures as you can. Automation reduces overhead. It can also improve your security by ensuring process steps are done quickly, consistently, and according to your predefined requirements. -This article describes the workflow automation feature of Microsoft Defender for Cloud. This feature can trigger consumption logic apps on security alerts, recommendations, and changes to regulatory compliance. For example, you might want Defender for Cloud to email a specific user when an alert occurs. You'll also learn how to create logic apps by using [Azure Logic Apps](/azure/logic-apps/logic-apps-overview).+This article describes the workflow automation feature of Microsoft Defender for Cloud. The workflow automation feature can trigger consumption logic apps on security alerts, recommendations, and changes to regulatory compliance. For example, you might want Defender for Cloud to email a specific user when an alert occurs. You'll also learn how to create logic apps by using [Azure Logic Apps](/azure/logic-apps/logic-apps-overview). ## Prerequisites @@ -52,7 +53,7 @@ Follow these steps: :::image type="content" source="media/workflow-automation/visit-logic.png" alt-text="Screenshot that shows the Actions section of the Add workflow automation screen and the link to go to Azure Logic Apps." border="true"::: - You are taken to Azure Logic Apps.+ Selecting **visit the Logic Apps page** opens Azure Logic Apps. 1. Select **(+) Add**. @@ -64,7 +65,7 @@ Follow these steps: 1. Review the information you entered, and then select **Create**. - In your new logic app, you can choose from built-in, predefined templates from the security category. Or you can define a custom flow of events that occur when this process is triggered.+ In your new logic app, you can choose from built-in, predefined templates from the security category. Or you can define a custom flow of events that occur when the workflow automation runs. > [!TIP] > Sometimes, parameters are included in a logic app in the connector as part of a string and not in their own field. For an example of how to extract parameters, see step 14 of [Working with logic app parameters while building Microsoft Defender for Cloud workflow automations](https://techcommunity.microsoft.com/t5/azure-security-center/working-with-logic-app-parameters-while-building-azure-security/ba-p/1342121).@@ -80,7 +81,7 @@ The logic app designer supports the following Defender for Cloud triggers: - **When a Defender for Cloud regulatory compliance assessment is created or triggered**: You want to trigger automations based on updates to regulatory compliance assessments. > [!NOTE]-> If you're using the legacy trigger **When a response to a Microsoft Defender for Cloud alert is triggered**, the Workflow Automation feature doesn't open your logic apps. Instead, use either of the triggers mentioned previously.+> If you're using the legacy trigger **When a response to a Microsoft Defender for Cloud alert is triggered**, the Workflow Automation feature doesn't open your logic apps. Instead, use the **When a Microsoft Defender for Cloud recommendation is created or triggered** trigger or the **When a Defender for Cloud Alert is created or triggered** trigger. 1. After you define your logic app, return to the **Add workflow automation** pane. @@ -94,13 +95,13 @@ You can also manually run logic apps when you view any security alert or recomme To manually run a logic app, open an alert or a recommendation, and then select **Trigger logic app**. -[](media/workflow-automation/manually-trigger-logic-app.png#lightbox)+[](media/workflow-automation/manually-trigger-logic-app.png#lightbox) ## Configure workflow automation at scale When you automate your organization's monitoring and incident response processes, the time it takes to investigate and mitigate security incidents can greatly improve. -To deploy your automation configurations across your organization, use the supplied Azure Policy `DeployIfNotExist` policies (mentioned later) to create and configure workflow automation procedures.+To deploy your automation configurations across your organization, use the supplied Azure Policy `DeployIfNotExist` policies described in the following table. The `DeployIfNotExist` policy effect automatically deploys required resources when they don't already exist, allowing you to create and configure workflow automation procedures at scale. Get started with [workflow automation templates](https://github.com/Azure/Azure-Security-Center/tree/master/Workflow%20automation). @@ -114,11 +115,11 @@ To implement these policies: | Workflow automation for security recommendations | [Deploy Workflow Automation for Microsoft Defender for Cloud recommendations](https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyDetailBlade/definitionId/%2Fproviders%2FMicrosoft.Authorization%2FpolicyDefinitions%2F73d6ab6c-2475-4850-afd6-43795f3492ef) | 73d6ab6c-2475-4850-afd6-43795f3492ef | | Workflow automation for regulatory compliance changes | [Deploy Workflow Automation for Microsoft Defender for Cloud regulatory compliance](https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyDetailBlade/definitionId/%2Fproviders%2FMicrosoft.Authorization%2FpolicyDefinitions%2F509122b9-ddd9-47ba-a5f1-d0dac20be63c) | 509122b9-ddd9-47ba-a5f1-d0dac20be63c | - You can also find policies by searching Azure Policy. In Azure Policy, select **Definitions**, and then search for them by name.+ You can also find policies by searching Azure Policy. In Azure Policy, select **Definitions**, and then search for the policies by name. 1. On the relevant Azure Policy page, select **Assign**. - :::image type="content" source="./media/workflow-automation/export-policy-assign.png" alt-text="Screenshot that shows how to assign the Azure policy.":::+ :::image type="content" source="./media/workflow-automation/export-policy-assign.png" alt-text="Screenshot of the Azure Policy page with the Assign option highlighted."::: 1. On the **Basics** tab, set the scope for the policy. To use centralized management, assign the policy to the **Management Group** that contains the subscriptions that use the workflow automation configuration. @@ -130,9 +131,10 @@ To implement these policies: 1. Review the summary page, and then select **Create**. -### Data types schemas+<a name="data-types-schemas"></a>+### Data type schemas for workflow automation -To view the raw event schemas of the security alerts or recommendations events that are passed to the logic app, go to the [data types schemas for workflow automation](https://aka.ms/ASCAutomationSchemas). This process can be useful in cases where you aren't using the Defender for Cloud built-in Logic Apps connectors (mentioned previously), but instead are using the generic HTTP connector. You can use the event JSON schema to manually parse it as you see fit.+To view the raw event schemas of the security alerts or recommendations events that are passed to the logic app, go to the [data types schemas for workflow automation](https://aka.ms/ASCAutomationSchemas). Viewing the raw event schemas can be useful when you aren't using the built-in Defender for Cloud Logic Apps connectors and are instead using the generic HTTP connector. You can use the event JSON schema to manually parse it as you see fit. ## Related content 
