Unable to install AzureADPreview Module

Issue:
When trying the update or install AzureADPreview it failed with the below error and not able to install.

Solution:
it is because AzureAD module got installed. AzureADPreview Module is the new one and many new cmdlets are introduced with AzureADPreview.

To install AzureADPreview, You need to uninstall AzureAD Module and then install AzureADPreview.
Open Powershell in elevated mode and run the commands in the internet connected machine.

Uninstall-Module AzureAD and Install-Module -Name AzureADPreview

Now new module has been installed.To Validate, Run the command Get-Module

2 thoughts on “Unable to install AzureADPreview Module”

  1. Hello, i tried to uninstall the azure ad and installed the azureadpreview after using the commands above but still the same error i received. “PackageManagement\Install-Package : The following commands are already available on this system……..” I’m running it on powershell ise admin

Leave a Reply

Your email address will not be published.