Microsoft is eliminating approximately 2.1% of its global workforce, as the software giant navigates a broader shift toward AI.