From TFA: "Analysts were expecting a $5.3 billion profit for the quarter, but that was canceled out by an even bigger loss on a five-year-old acquisition."
No, analysts were not expecting a $5.3B profit before the report; if they were they should probably not be in their jobs anymore. The after-hours price of MSFT shows that this news was already priced in and the loss was actually smaller that what was expected.
Geez.