In my recent webinar, someone asked me how to install Azure AD Connect PowerShell module. Note that no specific Azure AD Connect PowerShell module is available. You need to use the MSOnline module and AzureAD module for this purpose. In this article, let us discuss how to install the MSOnline module to achieve this.
How To Install Azure AD Connect PowerShell Module
To install Azure AD Connect PowerShell module, Follow the below steps.
1. Open PowerShell ISE with Run as administrator mode.

2. Now, we can execute the below PowerShell command to install the MSOnline Module.
Install-Module MSOnline -ForceAfter executing the above command, the MSOnline PowerShell Module was completed successfully, as shown in the screenshot below.

3. Then, we can install the Azure AD module using the below PowerShell command.
Install-Module AzureAD -ForceAfter executing the above command, the AzureAD PowerShell module was completed successfully, as shown in the screenshot below.

4. Now, after the successful installation of both modules, we can import both modules using the below PowerShell command.
Import-Module MSOnline
Import-Module AzureAD
5. Now, we can use the command below to connect to the Azure AD.
Connect-AzureADAfter executing the above command, I got the expected output successfully, as shown in the screenshot below.

Conclusion
There is no specific Azure AD Connect PowerShell module available. As mentioned in this article, you need to use the MSOnline and AzureAD modules for this purpose.
You may also like following the articles below.

I am Rajkishore, and I am a Microsoft Certified IT Consultant. I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machines, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.
