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