Fix Microsoft Defender for Cloud Alerts Missing in Graph API v2
Question details
The user is unable to retrieve Microsoft Defender for Cloud alerts using the Microsoft Graph API /v1.0/security/alerts_v2 endpoint, which returns an empty array despite alerts showing in the legacy endpoint.

- Product
- Microsoft Defender for Cloud
- Device & OS
- not provided
- Scenario
- Querying security alerts through the updated Microsoft Graph API v2 endpoint for security monitoring.
- Observed behavior
- Security alerts are visible through the legacy endpoint but the /v1.0/security/alerts_v2 endpoint unexpectedly returns an empty array.
Ensure you have the necessary administrative access to the Azure portal and that your Microsoft Graph API permissions are fully granted and up to date.
Verify Azure Integrations and API Permissions
Check that your Azure subscription, Defender for Cloud integrations, and Microsoft Graph API permissions are correctly configured to allow data to flow to Alerts v2.
The Alerts v2 endpoint relies on modernized integration paths between Microsoft Defender and the Graph API. Missing permissions or incomplete tenant configurations are the most common reasons for empty responses.
Log into the Azure portal, navigate to Microsoft Defender for Cloud, and verify that your cloud environment is properly synced and integrated.
Go to Microsoft Entra ID (formerly Azure Active Directory), select App registrations, and ensure your application has the correct permissions (such as SecurityAlert.Read.All) granted and consented by an admin.
Ensure that the Azure tenant subscription tied to your security alerts is active and correctly linked to the workspace being queried.

Escalate to Azure Support or Microsoft Q&A
If permissions are correct and the array remains empty, escalate the issue to Azure specialists, as this may require tenant-level backend troubleshooting.
Looking for a Lightweight Alternative to Microsoft Office?
While troubleshooting complex Microsoft Cloud and API integrations, you might want a simpler, hassle-free office suite for your daily document tasks. WPS Office offers a free, lightweight alternative that is highly compatible with Microsoft formats.

Frequently Asked Questions
Why do alerts show up in the legacy endpoint but not Alerts v2?
The Alerts v2 endpoint requires specific sync configurations and updated permission scopes in Microsoft Graph. If these are not fully propagated or configured in the Azure portal, v2 will return an empty array while the legacy endpoint might still show cached or standard alerts.
What permissions do I need for Microsoft Graph Security Alerts v2?
You typically need Application or Delegated permissions such as SecurityAlert.Read.All or SecurityEvents.Read.All. These must be explicitly granted and receive admin consent in Microsoft Entra ID.
How long does it take for Defender alerts to sync to the Graph API?
While often near real-time, it can sometimes take a few minutes for new alerts generated in Microsoft Defender for Cloud to be fully accessible and queryable via the Microsoft Graph API endpoints.




