Purpose
This guide explains how to register an application in Microsoft Entra ID and use its credentials in Logsign USO to pull Microsoft Defender for Cloud data (security alerts, security assessments, and secure score) via the Azure Resource Manager (ARM) API, for security analytics and forensic purposes.
The integration polls three independent, optionally-enabled streams from the Microsoft.Security resource provider:
-
Alerts: security alerts raised by Defender for Cloud (
Microsoft.Security/alerts) -
Assessments: secure posture findings, taken as a full snapshot on every collection cycle rather than incrementally (
Microsoft.Security/assessments) -
Secure Scores: the subscription's or management group's secure score, also collected as a full snapshot (
Microsoft.Security/secureScores)
At least one stream must be enabled for the source to poll anything.
Prerequisites
- Access to the Azure portal (https://portal.azure.com) with permission to register an application in Microsoft Entra ID.
- Permission to assign an Azure RBAC role that grants read access to Microsoft Defender for Cloud data (typically the built-in Security Reader role) at the subscription or management group scope you want to monitor. Confirm the exact role your organization requires with your Azure administrator; this has not been independently verified against Microsoft's current RBAC documentation.
- Either a single Subscription ID or a Management Group name to scope collection to. Exactly one of the two must be provided; providing both or neither is treated as a configuration error and the source will not poll.
Step 1: Create an App Registration in Microsoft Entra ID
- Log into the Azure portal: https://portal.azure.com
- In the left sidebar, navigate to Microsoft Entra ID.
- Click on App registrations, then New registration.
- Enter a name for the application (e.g.
Logsign_DefenderForCloud) and click Register. - From the Overview page, note the Application (client) ID and Directory (tenant) ID. You will need both later.
Step 2: Generate a Client Secret
- In the App Registration, click Certificates & secrets in the left sidebar.
- Click New client secret, give it a description, choose an expiration period, and click Add.
- Copy the generated Value immediately and store it securely. It cannot be retrieved again once you leave the page.
Step 3: Grant the Application Read Access to Defender for Cloud Data
- Navigate to the Subscription (or Management Group) you want Logsign to monitor.
- Open Access control (IAM) > Add role assignment.
- Assign the Security Reader role to the application you registered in Step 1.
Note: this grants read-only visibility into the security posture and alerts of the whole scope (subscription or management group). Confirm this matches your organization's least-privilege requirements before proceeding.
Step 4: Collect Required Information
You will need the following values when adding this source in Logsign USO:
- Tenant ID: App Registration > Overview > Directory (tenant) ID
- Client ID: App Registration > Overview > Application (client) ID
- Client Secret: the value generated in Step 2
- Subscription ID or Management Group Name: whichever scope you granted access to in Step 3 (provide exactly one, not both)
Add Device in Logsign USO
- Log in to your Logsign USO platform.
- Go to Settings > Data Collection and open the source addition screen (Add Device).
- Select the API source type and choose Microsoft Defender for Cloud from the provider list.
- Fill in Tenant ID, Client ID, Client Secret, and either Subscription ID or Management Group Name.
- Enable at least one of the three data streams: Collect Alerts, Collect Assessments, Collect Secure Scores. Leaving all three disabled means the source will not collect any data.
- Fill in the remaining default source fields (description, etc.) and click Save.
How Data Is Collected
| Stream | Collection behavior |
|---|---|
| Alerts | Incremental. Only new alerts since the last run are fetched. |
| Assessments | Full snapshot on every run (Microsoft's API exposes no incremental cursor for assessments); expect a re-send of the complete current posture each cycle. |
| Secure Scores | Full snapshot on every run, for the same reason as Assessments. |
Severity values from Defender for Cloud (Informational / Low / Medium / High; there is no Critical tier at the source) are mapped onto Logsign's severity scale, with High mapped to Logsign's top tier.
Troubleshooting
| Symptom | Likely cause |
|---|---|
| No data at all | Verify all required fields (Tenant ID, Client ID, Client Secret, and exactly one of Subscription ID / Management Group Name) are filled in, and that at least one collection stream is enabled. |
| Authentication failure | Client Secret may be expired or incorrect; regenerate it in Step 2 and update the source. |
| Empty Assessments/Secure Scores despite alerts working | Confirm the app's Security Reader role assignment covers the scope (subscription or management group) you configured. A role assigned at the wrong scope will silently return no data for that stream. |