Connect-AzureAD is not Recognized

Aniruddha Aditya 316 Reputation points
2021-03-03T17:43:51.5+00:00

Hi,

I am a new bee and just started scripting on Azure services. My first attempt is to connect to Azure AD and thus I installed the AzureAD Module. After installing the module, I still get the same error. Then I tried importing the module and got the below error:

Any help would be great. Thanks

Import-Module : The current processor architecture is: X86. The module 'C:\Users\aditya\Documents\WindowsPowerShell\Modules\AzureAD\2.0.2.130\AzureAD.psd1' requires
the following architecture: Amd64.

At line:1 char:1

  • Import-Module AzureAD
  • ~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : ResourceUnavailable: (C:\Users\aditya...30\AzureAD.psd1:String) [Import-Module], InvalidOperationException
  • FullyQualifiedErrorId : Modules_InvalidProcessorArchitecture,Microsoft.PowerShell.Commands.ImportModuleCommand
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,563 questions
{count} votes

Accepted answer
  1. Vasil Michev 95,666 Reputation points MVP
    2021-03-03T19:12:45.787+00:00

    As the error message shows, you are trying to run the module on a X86 machine, which unfortunately is not supported. You need to install it on a 64-bit machine. Alternatively you can run the module inside Azure Cloud Shell: https://azure.microsoft.com/en-us/features/cloud-shell/

    3 people found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Jonathan E 6 Reputation points
    2022-02-15T04:33:42.187+00:00

    I get the same: Import-Module: The current processor architecture is: MSIL. The module '/Users//.local/share/powershell/Modules/AzureAD/2.0.2.140/AzureAD.psd1' requires the following architecture: Amd64.

    Any chance for support on Arm64?

    1 person found this answer helpful.
    0 comments No comments

  2. Aniruddha Aditya 316 Reputation points
    2021-03-12T10:27:45.177+00:00

    My bad, actually I was using x84 bit ISE,

    0 comments No comments