Microsoft (MSFT) recently disclosed that it is parting ways with up to 2.5% of its workforce. Sometimes companies conduct layoffs because their outlooks have deteriorated, but it's unlikely that Microsoft is cutting employees because it is struggling.
https://finance.yahoo.com/markets/stocks/articles/microsoft-stock-outlook-remains-upbeat-221454081.html