Microsoft said it would cut 10,000 jobs by the end of third quarter of fiscal 2023. The layoffs will result in a charge of $1.2 billion in the second quarter of fiscal 2023.