Microsoft declares 'Code Red' after its biggest outage: the bug explained
Microsoft is treating this month's Microsoft 365 outage as its top priority. A months-old gateway defect, a Teams failover and lost capacity combined to knock out Outlook for roughly a day.

Microsoft has told employees that fixing the weaknesses behind this month's Microsoft 365 outage is its highest priority. Fox News reports that Jason Henderson, who leads Microsoft 365 core engineering, wrote in an email that "Code Red means that this is the highest priority work for our team," and called the incident the most customer-impacting event in the company's history. The outage began on Nov. 12 and hit Outlook email hardest.
What broke
Microsoft's preliminary post-incident report, dated Nov. 15 and summarized by The Register, traces the failure to a change made in July to the network gateway servers that handle Microsoft 365 traffic. That change contained a latent defect. It passed load testing and ran without visible problems for months.
The defect caused lock contention in an internal Windows process, which used up the servers' CPU and memory. It was worse on machines with more cores and newer hardware. Microsoft said its load testing "tended to focus on weaker hardware with fewer cores."
Microsoft's Charles Lamanna said the bug came from a fix built for the Microsoft 365 gateway servers and does not apply to broader Windows deployments, Fox Business reported. Fox News's Code Red story describes the cause more loosely as a Windows scalability defect, so the narrower account from Microsoft's own report is the better guide.
The trigger
Two things happened at once, according to The Register:
- Teams traffic failed over to the primary gateway that also supports Exchange Online, adding load.
- Nearly 14 percent of that gateway's server capacity was already out of service. Microsoft said there was still enough headroom on paper.
Together they pushed the gateway into the defect. Servers that failed sent their traffic to others, which hit the same problem. Within two hours the defect had spread across the fleet, and at the worst point more than 80 percent of servers were unresponsive. Fox Business adds that a separate issue stopped safeguards from containing the failure within individual network sections, so it went global.
Why recovery took so long
Restarting servers did not help, because they were swamped again by queued traffic as soon as they returned. Automated recovery tools were not built for a failure this broad. A normal rollback was not possible because the faulty change was months old.
Instead, engineers wrote a patch that returned the affected code path to an earlier known-good state in Windows. It was applied to groups of servers, and service came back gradually. By The Register's timeline, a mitigation was applied around 07:20 UTC on Nov. 13 and service looked healthy again by 16:10 UTC that day. Microsoft's final customer update came at 04:15 UTC on Nov. 14.
Teams, OneDrive, SharePoint and Office apps could fail away from the faulty gateway and recovered sooner. Exchange Online, which powers Outlook email, could not.
Who felt it
Fox Business reports the outage began during peak U.S. business hours. Outlook email, calendars and meeting invitations were affected, along with Microsoft's Copilot assistant. The outlet also lists customer-support email at the Indian airlines IndiGo and Akasa Air, and Microsoft 365 integrations used by OpenAI and Anthropic.
Fox News cites an Anderson Economic Group estimate of roughly $7 billion in lost productivity worldwide. Lamanna said the outage was not a cyberattack and was not caused by AI tooling. He apologized to customers. Rep. Rich McCormick, a Georgia Republican, said the disruption exposed a weakness in systems that businesses, hospitals, schools and government agencies depend on, and pointed to his Common-Sense Cloud Security Act.
What Microsoft says it will change
According to Fox News, Amanda Silver, a Microsoft corporate vice president, laid out five workstreams, including load shedding, splitting traffic by geography and faster recovery mechanisms. Microsoft wants to restore service within one hour in a similar future event and plans to use AI agents to speed up diagnosis.
Henderson also said employees exchanged more than 11,000 messages while diagnosing the problem. He acknowledged a second weakness: a separate recent urgent production fix took five to six days to reach every region. His goal is to go from detecting a problem to deploying an urgent fix worldwide in an hour. "We aren't here yet," he said.
What the report leaves for customers
Microsoft's own account points to testing and blast radius. A change that looked safe on older hardware failed on newer machines, and two events that were each manageable combined into a cascade. Companies that depend on Microsoft 365 email may want a backup channel, such as a second messaging tool, for the next outage. Microsoft said a final report was due Nov. 20; the coverage used here describes the preliminary findings.

