How To Install Azure AD Connect PowerShell Module

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.

Install Azure AD Connect PowerShell Module

2. Now, we can execute the below PowerShell command to install the MSOnline Module.

Install-Module MSOnline -Force

After executing the above command, the MSOnline PowerShell Module was completed successfully, as shown in the screenshot below.

how to install azure ad connect powershell module

3. Then, we can install the Azure AD module using the below PowerShell command.

Install-Module AzureAD -Force

After executing the above command, the AzureAD PowerShell module was completed successfully, as shown in the screenshot below.

install azure ad connect module in powershell

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
Install the Azure AD Connect PowerShell Module

5. Now, we can use the command below to connect to the Azure AD.

Connect-AzureAD

After executing the above command, I got the expected output successfully, as shown in the screenshot below.

How To Install the Azure AD Connect PowerShell Module

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.

Azure Virtual Machine

DOWNLOAD FREE AZURE VIRTUAL MACHINE PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!