Deprecated PowerShell Modules and Azure AD Graph retirement

You created a script or function a while back that people in the company use a lot, and suddenly… They come to you telling you that it doesn’t work anymore. 🙁 The module you used has become deprecated, cmdlets don’t all work anymore, etc. In this blog post, I will show the three most prominent modules that have become deprecated and where you can find good information about the successor to adjust your scripts.

What does deprecated mean?

In this case, the deprecated PowerShell Modules are no longer updated and supported. They will only receive critical security fixes, and new features and options will not be added.

Which modules will be affected?

Three modules have been deprecated since March 30th, 2024, and will continue working until March 30th, 2025.

  • Azure AD PowerShell (AzureAD)
  • Azure AD PowerShell Preview (AzureADPreview)
  • MS Online (MSOnline)

Last year, on June 1st, 2023, the Exchange Online v1 and v2 versions were retired (Microsoft stopped supporting the Remote PowerShell Protocol in all tenants). This also impacted the Security and Compliance part; all this has been fixed in the ExchangeOnlineManagement module v3.2.0, which can be found here.

What are the new modules?

For MS Online, you can update the latest version of MSOnline PowerShell (1.1.183.81) to avoid impact after June 30, 2024. Both AzureAD and AzureADPreview can still be used in their current situation until March 30th, 2025.

But for all three, it’s better to migrate your scrips to Microsoft Graph.

Migrating to Microsoft Graph

Microsoft supplied a few helpful articles which will help you migrate your scripts. You can start reading the Microsoft Learn articles here. Use the pull-down menu on the left to switch between Microsoft Graph PowerShell v1.0 (Azure AD) and Beta (Azure AD Preview).

Here, you can find more information about the new cmdlets, including nice tables with the old cmdlet name and the replacement one. You can also use the pull-down menu on the left to switch to Beta.

An app migration checklist is available here. Microsoft also has an inventory script that can identify applications in your tenant using Azure AD Graph here.

Is migrating difficult?

Well… That all depends, of course, on what features you use. Not all features are available in Microsoft Graph yet, and it’s a learning curve you must take. Creating all new scripts using Microsoft Graph helps. I learn best by doing things and reading blogs, and Microsoft Learn articles. Also, don’t hesitate to ask for help on Tech Community in the PowerShell forum.

And you can also check these blog posts I wrote earlier for some more insights 🙂

2 thoughts on “Deprecated PowerShell Modules and Azure AD Graph retirement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.