Forum Discussion
TechThomas
Aug 25, 2021Copper Contributor
Report Azure AD Alerts
Hello together
I need to get the the report from Azure AD Alerts for external User activities and File deletions
The following link shows this in the Admin Center
https://protection.office.com/alertsdashboard
Is there a way to do this from within PowerShell (as it's part of a reporting "Suite") to be able exporting it to CSV/Excel in an easier way?
Can this be achieved using the Graph API Module for PowerShell?
Thank you for your Help and best regards
Thomas
- pvanberloSteel Contributor
TechThomas Generally, alerts can be retrieved using the security/alerts endpoint on Graph API, as documented here. Since the Graph PowerShell cmdlets mimic the various API endpoints, you should be able to retrieve this information using the "Get-MgSecurityAlert" cmdlet.