Connect-AzureAd command was found in the module ‘AzureAD’, but the module could not be loaded. for more information run ‘Import-Module AzureAd’
After running Import-Module AzureAd getting error
The current Processor Architecture x86 the module c:\Program FIles\WindowsPowerShell\Modules\AzureAD\2.20.140\AzureAD.psd1’ requires the following architecture amd64
The root cause for this error is that your PowerShell script / Module (AzureAD.psd1) runs only on 64 bit operating system. I am therefore guessing you are running this on a 32-bit operating system.
To avoid reputation, do check this thread in the Microsoft Forum to understand more on the difference between the two (x86 vs amd64) :
I see you are having similar issue as others in the forum. I was not aware that UiPath for some modules chooses to run on 32 bit. I do not know why this occurs.