
How to check if your tenant is still using MSOnline or AzureAD PowerShell?
With the retirement of the MSOnline and AzureAD PowerShell modules that starts in early April 2025 and ends in late May 2025, it’s critical for organizations to assess whether they’re still relying on these legacy tools and begin migrating to Microsoft Graph PowerShell SDK or Microsoft Entra PowerShell.
Here’s how you can quickly identify if your tenant is still using these modules:
1. Use Microsoft Entra Recommendations (Recommended):
Microsoft has introduced a built-in recommendation that detects legacy PowerShell usage in your environment.
Steps:
1. Go to the Microsoft Entra Admin Center entra.microsoft.com
2. Navigate to Identity → Overview → Recommendations.
3. Look for the recommendation titled:
“Migrate from retiring MSOnline and AzureAD PowerShell usage.”
4. This report shows the recent usage of these modules (last 30 days), helping you pinpoint where migration is still needed.
2. Review Sign-In Logs in Microsoft Entra:
Sign-in logs allow you to track activity from legacy PowerShell modules.
Steps:
1. In Entra Admin Center, go to Identity → Monitoring & Health → Sign-in Logs.
2. Filter:
• User sign-ins (non-interactive)
• Application: Azure Active Directory PowerShell
3. Repeat for User sign-ins (interactive).
This will surface session data tied to MSOnline and AzureAD logins.
3. Check Locally Installed PowerShell Modules:
Run these commands to see if the modules are installed on admin machines or automation scripts:
Get-Module -ListAvailable MSOnline
Get-Module -ListAvailable AzureAD
If these modules are listed, it means they’re installed and potentially in use. You can then check for any active sessions via:
Get-PSSession
4. Use Audit Logs (Microsoft 365 Compliance Center):
For more detailed user and script activity:
• Navigate to Microsoft 365 Compliance Center compliance.microsoft.com
• Go to Audit and search for relevant cmdlet or app names like Connect-MsolService or Azure Active Directory PowerShell.
What’s Next?
If you confirm usage of MSOnline or AzureAD, begin planning your migration to:
Important Dates:
Module |
End of support |
Temporary outage tests |
Retirement |
MSOnline |
March 30, 2025 |
Between January 20, 2025 and March 30, 2025 |
Early Apr 2025 to late May 2025 |
AzureAD |
March 30, 2025 |
N/A |
After July 1, 2025 |
Leave a reply