A cloud-native solution that protects workloads across hybrid and multi-cloud environments with threat detection and security recommendations
Yes, continuous export from Microsoft Defender for Cloud to a Log Analytics workspace (LAW) in a different subscription is supported. It can also be configured to a workspace in a different tenant.
There are two main methods, depending on the level of control needed:
- Azure portal – Continuous export blade (subscription-level, simpler)
- REST API – Automations API (more granular, supports multiple configs and RG scope)
Below is the method based on the documented capabilities.
1. Prerequisites and permissions
Before configuring export to a LAW in another subscription:
- Ensure Microsoft Defender for Cloud is enabled on the source subscription.
- Ensure the target Log Analytics workspace exists in the other subscription.
- Grant the exporting identity the required permissions on the target workspace:
- At minimum, write permissions for the workspace solution if it does not have the SecurityCenterFree solution:
Microsoft.OperationsManagement/solutions/action. - Or read permissions if the workspace already has the SecurityCenterFree solution:
Microsoft.OperationsManagement/solutions/read.
- At minimum, write permissions for the workspace solution if it does not have the SecurityCenterFree solution:
- On the source subscription, the configuring identity must be Security Admin or Owner and have write permissions on the target resource.
Details are in the continuous export prerequisites and workspace permissions section.
2. Configure continuous export via Azure portal (cross-subscription)
Use this when a single export configuration per subscription is sufficient and subscription-level scope is acceptable.
- In the Azure portal, go to Microsoft Defender for Cloud.
- Open Environment settings and select the source subscription.
- Go to Continuous export.
- Choose Export target as Log Analytics workspace.
- In the workspace picker, select the target subscription and then the target LAW.
- Select what to export (for example):
- Security alerts
- Security recommendations
- Regulatory compliance data
- Secure score changes
- Choose export frequency:
- Streaming – sends data when resource health or alerts change.
- Snapshots – weekly snapshots of secure score and regulatory compliance data, and (in preview) recommendations and security findings.
- Save the configuration.
This creates a single continuous export configuration at the subscription level that streams or snapshots Defender for Cloud data into the LAW in the other subscription.
3. Configure continuous export via REST API (cross-subscription/tenant)
Use the Microsoft Defender for Cloud automations API for more advanced scenarios:
- Multiple export configurations per subscription.
- Resource-group–level scope.
- Additional filters and tags not exposed in the portal.
- Export to an event hub or LAW in another tenant.
High-level steps:
- Call the automations REST API to create or update an automation resource on the source subscription.
- In the automation definition:
- Set the scope to the subscription or specific resource group.
- Define triggers for the data types (alerts, recommendations, secure score, regulatory compliance, etc.).
- Configure the action as export to Log Analytics workspace, specifying the full resource ID of the LAW in the other subscription (or tenant).
- Ensure that when configuring continuous export via API, the parent is always included with the findings, as required by the API.
The API-only capabilities include:
- Multiple export configurations per subscription.
- More granular filters on alert and recommendation properties.
- Resource-group–level scope instead of only subscription-level.
- Ability to add tags to the automation resource.
If these API-only options are used, the Azure portal’s Continuous export page will show a banner indicating that other configurations exist.
4. Using exported data
Once configured, the LAW in the other subscription will receive:
- Streaming data for alerts, recommendations, and regulatory compliance assessments (depending on configuration).
- Weekly snapshots for secure score and regulatory compliance data, and (in preview) recommendations and security findings when snapshot mode is selected.
The data can then be queried and visualized using Azure Monitor Logs and other Azure Monitor features, or forwarded to SIEM/SOAR solutions as needed.
References: