It is reported that Install-Module
or Update-Module
sometimes fails on some machines. Based on our investigation, it is something to do with the networking connection. Recently we updated NuGet provider so that it can reliably download packages. You can follow the instructions below to install the latest build of NuGet provider and then install or update your module. Let's use 'Azure' module as an example below.
Install-PackageProvider NuGet -MinimumVersion 2.8.5.206 -Force
Launch new PowerShell Console
Update-Module Azure -Verbose
Required network endpoints
The Install and Update cmdlets require internet access to connect to the network endpoints used by the PowerShell Gallery. Ensure that your network access policies allow you to connect to TCP port 443 of the following endpoints.
Hosts required for package discovery and download:
cdn.oneget.org
- CDN hostnamecdn.powershellgallery.com
- CDN hostnameHosts required when using the PowerShell Gallery website:
devopsgallerystorage.blob.core.windows.net
- storage account hostname*.powershellgallery.com
- websitego.microsoft.com
- redirection serviceNote
Cmdlets that interact with the PowerShell Gallery can fail with unexpected errors when there is an outage of the PowerShell Gallery services. To see the current status of the PowerShell Gallery, see the PowerShell Gallery Status page on GitHub.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4