To run a PowerShell script when a suspicious-IP access alert is raised for Storage, use Workflow automation in Defender for Cloud to trigger a Logic App whenever a matching security alert occurs. The Logic App should use the Azure Security Center (Defender for Cloud) alert trigger , and from there you can call an Automation Runbook (PowerShell) or another action to execute your script. A manual or HTTP trigger isn't needed because the flow must start automatically from the security alert, and an AAD app registration is not required for the basic alert-triggered flow.