Issue when deploying Azure AD Connect on a Windows Server 2016

CLOUD ON-PREMISES

Applies to Gizmo 1.9.0+ | Windows Server 2016

This article describes how to solve an Azure AD Connect deployment issue on a Windows Server 2016.

Symptom

The following error occurs:
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”.

Solution

  • On the machine where the Robot is deployed, open a PowerShell console with Administrator rights.

  • Run the following command:

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

if (-not (Get-Module -ListAvailable -Name MSOnline)) 
{ 
    Install-PackageProvider nuget -Force
    Find-Module -Name MSOnline | Install-Module -Force -Confirm:$false
}