Microsoft confirms job cuts after calling for growth to slow