I am trying to understand difference between two modules, Azure AD and MS Online modules. Currently on my windows 10 machine I can use get-azureaccount cmdlet that returns my current Azure account. And there is bunch of cmdlets that I can use right now. Then why I need MS Online module.
Azure AD Connect allows you to quickly onboard to Azure AD and Office 365. Download Microsoft Azure Active Directory Connect from Official Microsoft Download Center. Organizations can provide users with a common hybrid identity across on-premises or cloud-based services leveraging Windows Server Active Directory and then. Home » Office 365 » Managing Office 365 Using Azure Active Directory Module for Windows PowerShell Managing Office 365 Using Azure Active Directory Module for Windows PowerShell Tweet. Today I share a script to automate all of the manual steps involved with setting up the Active Directory PowerShell module on your Windows 10 workstation. Clickety, Click. Use the download link at the bottom of this post to get a copy of the full script. Tags Active Directory PowerShell RSAT Windows 10. Comments (14) Cancel. MSOnline PowerShell for Azure Active Directory Microsoft Azure Active Directory Module for Windows PowerShell. Minimum PowerShell version. Installation Options. Install Module. Manually download the.nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies.
Please help me to understand the purpose of these two modules.
2 Answers
Get-AzureAccount / Get-AzureRMAccount is a part of the 'Azure' module.
When working with Azure AD (Active directory commands; not a part of the built-in modules) in Azure you will need the MSOnline module - which also happens to be the same module as for working with Office365. Usually MSOnline is referred to as the Azure Active Directory module for Windows Powershell.
Eg. if you install the Azure Active Directory module from example here: Microsoft - Active Directory Module for Windows Powershell 64-bit - you will get the MSOnline module installed on your machine. You can actually inspect / unpack the msi installer and you will see that the package here is Microsoft.Online.Administration.MSOnline.psd1
In order to work with Azure AD from Powershell, you'll then need to import this module (which contains a set of functions to work with Azure AD).
To list commands within this module after installing the module you can do the following:
Hope this clears the confusion.
Connect-Azure: allows user to manage Active Directory objects only, [where directory is hosted in Azure].
Connect-Msoline: apart from managing Active Directory allows more administrative tasks such as Domain management, configure single sign-on etc.
Hope this clarifies your doubt.Referencehttps://docs.microsoft.com/en-us/powershell/module/azuread/connect-azuread?view=azureadps-2.0