Azure Agent SSL Issue: "an existing connection was forcibly closed by the remote host"

Saeed, Hammad 0 Reputation points
2025-02-26T05:19:18.83+00:00

Windows server was updated from 10 to 11. TLS certificates were updated. I've verified that its using 1.2. SSL works as well. Azure DevOps is accessible via the server.

Installing a new agent result in the same issue

attempting to restart/remove the agent via start/setup .cmd files yields no results. Give the same result SSL

System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.

---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..

---> System.Net.Sockets.SocketException (10054): An existing connection was forcibly closed by the remote host.

   --- End of inner exception stack trace ---

I was able to previously restart the agent via .cmd files but do not remember encountering the ssl issue.

I can post additional details if needed. I've explored all avenues that I could think of. Please assist.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,830 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.