Although sales were below Wall Street estimates, Microsoft expressed an upbeat outlook for the year ahead.