Microsoft traces global M365 outage to gateway bug missed by load tests
A dormant gateway defect became a global Microsoft 365 failure as Teams traffic shifted onto a system already missing nearly 14 percent of its capacity. Recovery required engineers to restore earlier code across large server groups.

Microsoft has traced a global Microsoft 365 outage to a gateway-server defect that escaped detection for more than three months. An iTnews account of Microsoft executive Charles Lamanna’s explanation details how a hardware-testing mismatch, reduced capacity and a change in Teams traffic combined to overwhelm the system.
Lamanna, Microsoft’s executive vice-president of Copilot, agents and platform, identified lock contention in an internal process as the fault that left gateway servers unable to respond under particular loads. Tasks competing for a shared resource stalled while waiting for access. A gateway-specific fix introduced the defect; its worldwide rollout had begun in July without exposing the problem for more than three months.
The testing environment did not reproduce the conditions that made the defect worse. Microsoft’s laboratories focused on less powerful machines with fewer processor cores, but the contention intensified on newer, higher-core-count hardware. The affected code and its underlying defect were specific to the gateway servers, not general Windows installations.
About 15 hours before the outage, Teams traffic moved from its separate gateway system to the primary gateway also used by Exchange Online. That failover increased the load and altered the traffic mix. An unrelated problem the day before had already taken nearly 14 percent of the gateway’s capacity out of service.
Failures then began at the peak of US traffic. Redirecting users away from failing servers put additional pressure on machines that were still available, spreading the overload. Within less than two hours, over 80 percent of the gateway servers had stopped responding.
The gateway’s design included isolation across thousands of capacity units and between regions. Those boundaries should have limited the failure, but a separate problem prevented them from doing so. Lamanna did not explain that additional fault. The service impact also differed: Teams, OneDrive, SharePoint and Office applications could switch away from the defective gateway and recover sooner. Exchange Online lacked that escape route.
Restoring individual servers did not provide a quick recovery. Queued traffic immediately flooded machines brought back into service, while Microsoft’s automated recovery systems were not designed to handle a failure on that scale. The age of the faulty change also complicated the response: ordinary rollback, flighting and feature-flag controls could not promptly undo a defect introduced months earlier.
Engineers instead prepared an update that put the code back into its earlier state. They deployed it across large groups of servers together, with some groups comprising more than half of a region, rather than relying on the normal controls to reverse the original change.




















