Skip to main content
Microsoft Defender for Cloud Workflow automation runs a Logic App when a security alert is created; it has no direct webhook output. The Logic App HTTP action can POST JSON to any address, so no separate Defender for Cloud integration is needed: create a Standard Alert Event integration in Flashduty and let the Logic App push security alerts to it in the standard alert format. If the same tenant already sends Defender for Cloud alerts to Microsoft Sentinel, you can use the Microsoft Sentinel integration instead, which pushes per incident and supports recovery.

In Flashduty On-call

Get an integration push URL in either of the two ways below. Choose the Standard Alert Event integration type in both, not Microsoft Defender for Cloud.

Use a dedicated integration

  1. In the Flashduty console, go to Channels and open a channel
  2. Go to Settings → Integrations → Dedicated integrations and click Add integration
  3. Select Standard Alert Event and click Save
  4. Open the generated integration card and copy the Push URL, in the form https://api.flashcat.cloud/event/push/alert/standard?integration_key=<integration key>

Use a shared integration

  1. In the Flashduty console, go to Integration Center → Alert Events
  2. Select Standard Alert Event and enter an integration name
  3. Configure the default route and select a channel. You can add more rules under Routing after creation
  4. Click Save and copy the generated Push URL

Configure in Microsoft Defender for Cloud

You need the Security admin role or Owner on the resource group; creating and editing Logic Apps needs Logic App Contributor.
1

Create a Logic App with an HTTP action in the Azure portal

Where: Azure portal › Logic apps › + Add
  1. Create a Consumption Logic App. Workflow automation only triggers Consumption Logic Apps
  2. Choose When a Defender for Cloud Alert is created or triggered as the workflow trigger. Do not use the legacy When a response to a Microsoft Defender for Cloud alert is triggered; workflow automation does not run Logic Apps that use it
  3. After the trigger, add the built-in HTTP action with these fields:
Below is the JSON definition of this HTTP action; in the Logic App Code view it goes under actions. A string that starts with @ and is a single expression is a Logic App expression evaluated from the alert trigger output; the value is emitted as JSON, so an alert name containing quotes does not break the body:
In the designer, the same values map to these dynamic contents (outputs of the When a Defender for Cloud Alert is created or triggered trigger):Save the workflow when the fields are filled in.
2

Create a workflow automation in Defender for Cloud

Where: Azure portal › Microsoft Defender for Cloud › Workflow automation › Add workflow automationSave when done.
3

Trigger an alert by hand and confirm

Where: The page of any security alert in Defender for Cloud › Trigger logic appClick Trigger logic app to run the Logic App for that alert manually, without waiting for a new alert. The run result is in the Logic App run history.After a few seconds, go back to Flashduty. If the integration shows a Latest event time, the setup works.

Field mapping

Recovery and deduplication

Defender for Cloud workflow automation runs the Logic App only when an alert is created or triggered and sends nothing when the alert is dismissed, so alerts from this integration do not recover automatically. Enable auto-resolve timeout on the channel that receives this integration, with a suggested window of 3 days or the time your team usually takes to handle alerts; you can also close alerts manually in Flashduty.

Troubleshooting

  • Flashduty returns InvalidParameter: check that event_status is one of the capitalized Critical, Warning, Info, and that title_rule is not empty
  • The Logic App is missing from the workflow automation list: the list shows only Consumption Logic Apps that use a Defender for Cloud connector; click Refresh after creating it
  • The Logic App does not run: confirm the trigger is When a Defender for Cloud Alert is created or triggered and that the workflow automation trigger conditions (severity) cover the alert