Microsoft is cutting 18,000 jobs, including 12,500 associated with the Nokia handset and services business it acquired earlier this year.