The Azure DevOps pipeline failed at the deployment task with the below error.
“System.Net.Http.HttpRequestException: An error occurred while sending the request. —> System.Net.WebException: Unable to connect to the remote server —> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.X.X.X:443”.
Root Cause: Orchestrator access issue in the self-hosted agent.
Resolution:
- Verify if the self-hosted agent has access to the On-Prem Orchestrator, using a ping or Telenet command.
If there is no access, connect with your IT team to get access to the On-Prem Orchestrator in the agent.
Example: Ping 10.X.X.X or Telnet 10.X.X.X 443 .