Unable to download error when trying to install Azure AD PowerShell v1 (MSOnline)

I needed to install Azure AD PowerShell v1 (MSOnline) module on AD FS server running on Windows Server 2016 and was getting the error:

WARNING: Unable to download from URI ‘https://go.microsoft.com/fwlink/?…’

WARNING: Unable to download the list of available providers. Check your internet connection.

PackageManagement\Install-PachageProvider : No match was found for the specified search criteria for the provider ‘NuGet’. The package provider requires ‘PackageManagement’ and ‘Provider’ tags. Please check if the specified package has the tags.

The solution found here was to run following command:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Restarted the server and was able to complete module installation.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s