Fix it now · Microsoft Deadline Calendar
Connect-AzureAD and Get-AzureADUser stopped working
Microsoft retired the AzureAD PowerShell module in 2025, after the MSOnline module. Scripts using Connect-AzureAD, Get-AzureADUser or Add-AzureADGroupMember need to move to the Microsoft Entra PowerShell module or the Microsoft Graph PowerShell SDK. Microsoft reports high cmdlet parity between AzureAD and Entra PowerShell, which makes the rewrite faster.
Fix it now
- Search every identity script and scheduled task for
AzureAD. - Use Microsoft's cmdlet migration map to find each Graph or Entra PowerShell equivalent.
- Register an app with the minimum Graph permissions; authenticate with a certificate or managed identity.
- Test against a pilot OU before re-enabling the scheduled task.
- Log every run and alert on failure.
Why this keeps happening
The AzureAD module replaced MSOnline in many scripts, and then it was retired too. Each rewrite that stopped at the next module is a script that will break again. See the full Microsoft Deadline Calendar.
What breaks next
- Already passed2025MSOnline (May 2025) and AzureAD (from mid-October 2025) PowerShell modules retired; cmdlets stopped working. Legacy Azure AD Graph API retired.Who it hits: Any script usingSource: Microsoft Learn: Azure AD PowerShell migration FAQ (MSOnline retired May 30, 2025)
Connect-MsolService,Get-MsolUser,Connect-AzureAD,Get-AzureADUser, or callinggraph.windows.net - NextEnd of Dec 2026SMTP AUTH Basic Authentication disabled by default for existing Exchange Online tenants (admins can re-enable for now)Who it hits: Scripts that email new-account notices viaSource: Microsoft Exchange Team blog: Updated SMTP AUTH Basic Authentication deprecation timeline (Jan 27, 2026)
smtp.office365.comwith a stored username and password
You'll fix this one. There are more coming.
Find your next break date in about five minutes. Your answers are scored in your browser.
Run the 5-minute Microsoft Deadline CheckQuestions
Graph SDK or Entra PowerShell: which one?
Entra PowerShell is closer to the old AzureAD cmdlets and easier for existing scripts. The Graph SDK covers more of Microsoft 365. Either is supported.
