Forum Discussion

jnhaing's avatar
jnhaing
Copper Contributor
Apr 30, 2020

Install azureAD module

Hi,

 

I am new on powershell and azure, i want to install the azureAD module but when i try to do :

 

Install-Module -Name AzureAD

 

I have this error:

 

Does anyone encounter this issue and solve it?

 

Regards

  • Animesh Joshi's avatar
    Animesh Joshi
    Brass Contributor
    This looks like a connectivity issue to the repository location at https://www.powershellgallery.com/api/v2/packages/azuread/2.0.2.76 as per the error screen shot.
    What happens when you browse to this location?
    If you can successfully browse, you can
    - -download the module locally to you computer
    - -copy it to your PowerShell module location, you can find module location by running command: get-childItem env:\psModulePath | format-list
    - -one in default module path you can run import-module <moduleName>

Resources