Demand for the video game and cloud computing services helped push Microsoft sales to a new quarterly record.