Type something to search...
The end of AzureAD and MSOnline PowerShell modules

The end of AzureAD and MSOnline PowerShell modules


Introduction

Microsoft recently announced the general availability of the Microsoft Entra PowerShell module. This module offers administrators and IT professionals a new way to manage and automate tasks related to Microsoft Entra ID (formerly Azure Active Directory). This update marks an important step in simplifying identity and access management in cloud environments.


Timeline

In 2021, Microsoft announced that the next developments on PowerShell would focus on the Microsoft Graph PowerShell SDK.

ModuleEnd of supportRetirement
AzureADMarch, 30 2025After July 1, 2025
MSOnlineMarch, 30 2025Early Apr 2025 to late May 2025

Benefits of migrating to Microsoft Graph

Microsoft Graph represents the best-in-breed API surface. It offers a single unified endpoint to access Microsoft Entra services and Microsoft 365 services such as Microsoft Teams and Microsoft Intune. All new functionalities will only be available through Microsoft Graph. Microsoft Graph is also more secure and resilient than Azure AD Graph.

Microsoft Graph has all the capabilities that have been available in Azure AD Graph and new APIs like identity protection and authentication methods. Its client libraries offer built-in support for features like retry handling, secure redirects, transparent authentication, and payload compression.


How to know if these modules are still used

Microsoft Entra sign-in logs can be used to identify connections from MSOnline and AzureAD PowerShell. They provide information about the client and user of the PowerShell session.

  1. Sign in to the Microsoft Entra Admin Center by opening your web browser to https://entra.microsoft.com.
  2. In the left menu, click Identity, then Monitoring & health and Sign-in logs.
  3. Select the User sign-ins (Interactive) tab, then click Add filters and choose the Application attribute.
  4. Enter Azure Active Directory PowerShell to apply the filter.

image

The MSOnline PowerShell and AzureAD PowerShell sign-in events appear with the application name Azure Active Directory PowerShell.


How to upgrade to the new version ?

You can install the new Entra module (API version /v1.0) via the following PowerShell command :

Install-Module -Name Microsoft.Entra -Repository PSGallery -Scope CurrentUser -Force -AllowClobber 

Or install the beta version of the module via the following PowerShell command :

Install-Module -Name Microsoft.Entra.Beta -Repository PSGallery -Scope CurrentUser -Force -AllowClobber 

Once installed, you can connect via the following PowerShell command :

Connect-Entra -Scopes 'User.Read.All'

If you have existing scripts that run with the AzureAD module, you can continue to use them with minimal modification by adding the Enable-EntraAzureADAlias command.

Import-Module -Name Microsoft.Entra.Users
Connect-Entra #Replaces Connect-AzureAD for auth
Enable-EntraAzureADAlias #Enable aliasing
Get-AzureADUser -Top 1

Conclusion

The general availability of the Microsoft Entra PowerShell module provides administrators with a powerful and flexible new way to manage identity and access in cloud environments. By automating common tasks and centralizing management, this module increases efficiency and security.


Sources

Microsoft - Techcommunity


Did you enjoy this post ? If you have any questions, comments or suggestions, please feel free to send me a message from the contact form.

Don’t forget to follow us and share this post.

Related Posts

How to disable self-service on Copilot licenses

How to disable self-service on Copilot licenses

Introduction Microsoft has activated a setting in the tenants (by default) to allow any user to purchase a Microsoft Copilot license through the *Microsoft 365 Copilot self-service pursha

Read More
How to configure callback in a Teams queue

How to configure callback in a Teams queue

Definition Callback in Teams allows callers in a queue to be called back after a certain time rather than waiting until an agent becomes available.Prerequisites **Licenses r

Read More
How to handle duplicates in Teams directory search

How to handle duplicates in Teams directory search

Introduction Microsoft recently announced a significant optimization for the search by name and extension functionality in its Teams auto attendants. You have probably already had this case

Read More
How to inventory Direct Routing numbers in Teams

How to inventory Direct Routing numbers in Teams

Introduction Microsoft Teams continues to evolve to offer ever more effective communication and collaboration solutions. To make life easier for administrators, Microsoft has announced the

Read More
Update to version 6.8.0 of the Teams PowerShell module

Update to version 6.8.0 of the Teams PowerShell module

Introduction Microsoft recently released the new version 6.8.0 of the PowerShell module for Microsoft Teams.Installation You can check the version of the installed module via t

Read More
How to block a specific external user in Teams

How to block a specific external user in Teams

Introduction Microsoft recently introduced a new feature for Teams administrators to block specific external users. This update aims to strengthen security and protect internal members of t

Read More
Update to version 13.3.0 of the Azure PowerShell module

Update to version 13.3.0 of the Azure PowerShell module

Introduction Microsoft recently released the new version 13.3.0 of the PowerShell module for Microsoft Azure.Installation You can check the version of the installed module via

Read More
Update to version 6.9.0 of the Teams PowerShell module

Update to version 6.9.0 of the Teams PowerShell module

Introduction Microsoft recently released the new version 6.9.0 of the PowerShell module for Microsoft Teams.Installation You can check the version of the installed module via t

Read More
Update to version 7.0.0 of the Teams PowerShell module

Update to version 7.0.0 of the Teams PowerShell module

Introduction Microsoft recently released the new version 7.0.0 of the PowerShell module for Microsoft Teams.Installation Vous pouvez vérifier la version du module installé via

Read More