Diagnosing Intermittent Agent Lost Errors in Azure DevOps Self‑Hosted Agents
Goal: pinpoint why a self‑hosted Azure DevOps agent intermittently reports Agent Lost during high‑concurrency pipeline runs. The agent relies on a long‑polling HTTPS listener that sends periodic heartbeats to the server. When the host exhausts its local TCP port pool or a firewall aggressively times out idle connections, the listener fails to receive a respo