Microsoft declared a “Code Red” after a major outage exposed weaknesses in its systems and response process.