As investors sold shares of Microsoft on Thursday, the $3.22 trillion company dragged down the software complex and the S&P 500 index.

Revenue from the company’s cloud computing unit failed to meet analysts’ expectations.

Revenue from the company’s cloud computing unit failed to meet analysts’ expectations.