What is the difference between Azure AD Module and MS Online module?

Currently, there are two PowerShell modules to manage your Azure AD: AzureAD and MSOnline.


The MSOnline Module, with its *-MSOL* cmdlets, was the first Windows PowerShell Module for Azure Active Directory. Microsoft refers to this module as version 1.0. MSOnline is the old module, which can still provide functionality that is not yet available in the AzureAD module. Probably, the MSOnline module will be deprecated when all of the functionality has been migrated to the newer module called AzureAD.


Its full name is Azure Active Directory PowerShell for Graph. Microsoft refers to this module as version 2.0. The AzureAD module, and its dependencies, can be installed and updated using PowerShellGet from the PowerShell Gallery.

Microsoft recommends to use the newer AzureAD module.

How to install the MSOnline Module?

PS C:\Windows\system32> Install-Module MSOnline
PS C:\Windows\system32> Import-Module MSOnline

How to install the AzureAD Module?

PS C:\Windows\system32> Install-Module AzureAD

PS C:\Windows\system32> Import-Module AzureAD

Thanks for reading! You can follow me on Twitter @PrigentNico

About Nicolas 282 Articles
I work as an IT Production Manager, based in Paris (France) with a primary focus on Microsoft technologies. I have 10 years experience in administering Windows Servers. . I am a Microsoft MVP for Cloud & Datacenter Management. I also received the PowerShell Hero 2016 award by PowerShell.0rg. And finally, I am "MCSE: Cloud Platform and Infrastructure", "MCSA: Windows Servers", "Administering & Deploying SCCM", and CheckPoint CCSA certified.