Unable to install "AzureAD" module RRS feed

  • Question

  • PS C:\Windows\system32> Install-Module -Name AzureAD

    Untrusted repository
    You are installing the modules from an untrusted repository. If you trust this repository, change its
    InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): A
    WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/AzureAD/' is not valid.
    PackageManagement\Install-Package : Package 'AzureAD' failed to download.
    At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\\PSModule.psm1:1772 char:21
    + ...          $null = PackageManagement\Install-Package @PSBoundParameters
    +                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ResourceUnavailable: (C:\Users\rarora...D\AzureAD.nupkg:String) [Install-Package], Excep
        + FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPac
    Tuesday, December 4, 2018 11:12 AM

All replies

  • Are you running this inside Windows Container? Why do you want to put AzureAD module into container?
    Tuesday, December 11, 2018 12:49 AM