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/
Connect-AzureAD is not Recognized
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
2 additional answers
Sort by: Most helpful
-
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?
-
Aniruddha Aditya 316 Reputation points
2021-03-12T10:27:45.177+00:00 My bad, actually I was using x84 bit ISE,