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.
First of all, in the post-pandemic AI era, many Big Tech firms across the board have been laying off relatively small numbers of their workers here and there. Secondly, Microsoft's most recently reported quarterly financial results suggest that the firm is benefiting tremendously from the AI boom.