Rows of data center server racks toppling like dominoes with glowing red internals as envelopes scatter overhead, while an engineer works at a console showing a world map.
|

Microsoft says a July code change it couldn’t roll back caused its marathon Microsoft 365 outage

Update, Nov. 24, 2026, 12:00 PM ET: Microsoft has declared a “Code Red” to overhaul how it prevents and responds to major outages, according to internal memos reviewed by Reuters. M365 Core President Jason Henderson called it the most customer-impacting incident in Exchange Online’s history, per Reuters, and the memos describe plans for load shedding, geographic traffic partitioning, faster recovery and a target of worldwide resolution within an hour in future incidents. A Microsoft spokesperson told Reuters its teams are working around the clock to implement lessons learned.

Microsoft now has an explanation for the marathon outage that knocked Outlook and Exchange Online offline for most of a day last week: a code change it shipped back in July. The company released a preliminary post-incident report for the Nov. 12 incident, and said on X that admins can read it in the Microsoft 365 admin center under MO1550821 and EX1550543. (Catch up with our coverage of the outage and its resolution.)

A bug that waited three months

According to the report, as quoted by The Register, a July 2026 fix written for Microsoft 365’s network gateway servers caused “lock contention inside an internal Windows process” that exhausted the machines’ CPU and memory. The problem gets worse on newer hardware with more cores, and Microsoft admitted its “load testing tended to focus on weaker hardware with fewer cores.” So the change sailed through testing and ran worldwide for more than three months without incident, TechCentral reported.

The perfect storm

Two routine events lined up. At 8:07 p.m. ET on Wednesday, Nov. 11, Teams traffic failed over to the primary gateway that also carries Exchange Online. Meanwhile, nearly 14% of that gateway’s capacity was out of service because of an unrelated issue. Microsoft says neither was a problem on its own. Together, they tripped the bug.

Then the dominoes fell. When a server stopped responding, traffic moved to the next healthy one, which promptly hit the same bug. In under two hours, the failure spread across the fleet, and “at its lowest,” more than 80% of the gateway servers were unresponsive. Microsoft’s anomaly detection flagged trouble at 11:03 a.m. ET on Thursday, Nov. 12, and the first support case arrived at 11:33 a.m. ET. Teams, OneDrive, SharePoint and the Office apps could fail over to other infrastructure. Exchange Online couldn’t, “for scale reasons,” which is why email stayed down longest.

Why the fix took so long

Microsoft said its automated recovery processes “were not designed to restore service from this broad unresponsive state,” and servers that came back online were immediately buried in waiting traffic. Because the defect was months old, a simple rollback wasn’t possible. So engineers built an update that returned the code path to its previous known good state, then took groups of servers offline, patched them and brought them back. Microsoft started applying that fix at 2:20 a.m. ET on Friday, Nov. 13, and reported things healthy again at 11:10 a.m. ET. That’s a patch for a patch, which is very on-brand for IT.

What’s next

According to TechCentral, Microsoft says it has since added monitoring of how traffic gets redirected, limited how load is redistributed to avoid another cascade, and added capacity. The report also says a separate, still-unexplained issue kept the failure from staying contained to one region. Microsoft plans to publish a final post-incident report by Nov. 20.

Sources

Similar Posts