Hunting Threats Across Entra ID and Purview with PowerShell
If you’ve ever had to handle an escalation on a Friday afternoon, you know the drill: you are jumping between the Entra ID portal and Microsoft Purview audit searches, trying to figure out what a compromised account touched while management asks for an update every ten minutes. Clicking through portals during an active security incident simply doesn't scale. While vendor marketing loves to talk about "unified single-pane-of-glass dashboards," those of us actually running cloud environments know that customized automation scripts are what actually save your weekend. Here is a practical look at how to hook PowerShell into Microsoft Graph and Purview to automate high-risk identity detection and data impact assessments before an incident turns into a full breach. 1. Catching Suspicious Entra ID Activity (Beyond Simple Failures) Moving away from the legacy AzureAD and MSOnline modules wasn't painless, but the Microsoft.Graph SDK gives us direct access to the raw sign-in...