Cloud Insights Telegraf-based Windows data collector throws an error when running installer snippet: "Invoke-WebRequest : The request was aborted: Could not create SSL/TLS secure channel."
Applies to
- Cloud Insights (CI)
- Windows Data Collector
- Windows Server 2012
Issue
When executing the installer snippet in PowerShell for a Windows Data Collector in Cloud Insights, an error is produced, preventing the installation from proceeding.
Invoke-WebRequest : The request was aborted: Could not create SSL/TLS secure channel.
At line:1 char:876
+ !$($installerName=".\cloudinsights-windows.ps1") -and !$($envName=".\cloudinsigh ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
& : The term '.\cloudinsights-windows.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1047
+ ... "GET") -and $(&$installerName -download -install)
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (.\cloudinsights-windows.ps1:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException