Microsoft on Tuesday reported fiscal fourth-quarter profit of $16.5 billion, up 47% from the same period last year. Net income of $2.17 per share beat Wall Street expectations. The software maker also topped forecasts by posting revenue of $46.2 billion in the quarter that ended on June 30, a 21% increase over the same time last year.

“We are innovating across the technology stack to help organizations drive new levels of tech intensity across their business,” said Satya Nadella, chairman and chief executive officer of Microsoft, in a statement.

“Our results show that when we execute well and meet customers’ needs in differentiated ways in large and growing markets, we generate growth, as we’ve seen in our commercial cloud – and in new franchises we’ve built, including gaming, security, and LinkedIn, all of which surpassed $10 billion in annual revenue over the past three years,” he added.

Analysts were expecting Microsoft to earn $1.91 per share for the April-June quarter on revenue of $44.1 billion. Microsoft profits have soared throughout the pandemic thanks to ongoing demand for its software and cloud computing services for remote work and study. After an initial dip in after-hours trading, the company’s shares later recovered and were up by less than 1%.

“As we closed out the fiscal year, our sales teams and partners delivered a strong quarter with over 20% top and bottom-line growth, highlighted by commercial bookings growth of 30% year over year,” said Amy Hood, Microsoft’s chief financial officer of . “Our commercial cloud revenue grew 36% year over year to $19.5 billion.”

Growth in sales of Microsoft’s cloud services, which compete with Amazon and other companies, and its Office productivity tools for handling work documents and email both outpaced overall revenue growth. The company’s historical pillar — personal computing — grew just 9% in the quarter.

Microsoft noted that supply issues were affecting its personal-computing division, including for its Surface and Windows products. The company recently unveiled the next generation of Windows, called Windows 11, its first major update in six years. It will be available later this year.