There have been several Windows Azure Active Directory Modules. Here is a quick reference.
What Versions Exist?
Microsoft’s evolution and naming of the modules has caused some confusion:
- V1. The initial PowerShell module for Azure AD is named “MSOnline” and was also known as the Office 365 PowerShell module https://docs.microsoft.com/en-us/powershell/module/msonline/?view=azureadps-1.0
- V2. The new version (V2) is called Azure AD PowerShell Version 2 and is properly named AzureAD https://docs.microsoft.com/en-us/powershell/azure/install-adv2?view=azureadps-2.0
- V2 Preview Release. They always maintain a preview release of the latest and greatest https://www.powershellgallery.com/packages/AzureADPreview/220.127.116.11
Please refer to the below detailed description of the modules for a full list of cmdlets and functionality.
Azure Active Directory PowerShell v2
Azure Active Directory PowerShell v1
Key Cmdlet Differences
The immediate difference is all of the cmdlets in the MSOnline module were named with “MSOL” are now named with “AzureAD”. E.g. Connect-AzureAD.
To see a list of cmdlets in the V2 module, refer to “Azure Active Directory V2 PowerShell Module – General Availability Release 18.104.22.168”.
Tags: Azure AD PowerShell