An Azure service that automates the access and use of data across clouds without writing code.
This usually happens when the Log Analytics workspace / Microsoft Sentinel workspace was moved to another resource group after Sentinel had already been enabled. Microsoft documents that moving a workspace after Microsoft Sentinel is deployed isn’t supported, and one of the side effects can be stale resource IDs/paths being returned by analytics/playbook workflows. Microsoft’s guidance for cases where the workspace was already moved is to disable all active Analytics rules, wait about five minutes, and then enable them again.
A few things to check:
Confirm whether the Sentinel-enabled Log Analytics workspace was ever moved to a different resource group/subscription.
If yes, go to Sentinel > Analytics, disable the active rules, wait ~5 minutes, then re-enable them.
Re-save or recreate any automation rules/playbook bindings so they pick up the current workspace resource ID.
In the playbook, avoid relying on an old hard-coded ARM ID or URL. The current Sentinel incident trigger exposes workspace info fields including subscription ID, workspace name/ID, and resource group name, so use those current values where possible.
If it still returns the deleted resource group after that, the bad reference is likely stuck because the workspace move itself is unsupported. In that case, the clean fix is usually to deploy Sentinel on a new workspace in the correct resource group and migrate your content rather than trying to repair the old metadata in place. Microsoft also notes that once Sentinel is deployed on a workspace, it doesn’t support moving that workspace to another resource group or subscription.
So, this is not really a Logic Apps bug to fix inside the playbook, it’s most likely a stale workspace/resource ID problem caused by an unsupported workspace move.