International Business Machines' quarterly revenue beat analysts' expectations as the company's shift to high-growth areas such as cloud-based services begins to yield results. 

IBM also stood by its full-year forecast for adjusted earnings of at least $13.50 per share, dispelling any concerns about the impact from Britain's vote to leave the European Union. 

IBM receives nearly a third of its revenue from Europe, Middle East and Africa. 

Chief executive Ginni Rometty’s push towards cloud-based services, security software and data analytics seems to have paid off with a 12% rise in revenue from "strategic imperatives" in the second quarter. 

Cloud revenue jumped 30%, compared with 34% in the preceding quarter. 

"For us, it's not about being the biggest cloud, that's not our goal, our goal is to have the best hybrid capabilities," the company's chief financial officer Martin Schroeter said in an interview.

IBM said its total revenue dropped 2.8% to $20.24 billion for the quarter ended June 30 from a year earlier, hurt by a fall in its traditional hardware businesses. 

The company's global business services revenue, which includes consulting, fell 2%, while its systems unit, which includes systems hardware, dropped 23.2%. 

However, the company's 17th quarterly revenue decline in a row was not as steep as expected. 

The average analyst estimate was $20.02 billion, according to Thomson Reuters. 

BM said its net income fell to $2.50 billion, or $2.61 per share, from $3.45 billion, or $3.50 per share. 

Excluding items, IBM earned $2.95 per share, beating average analyst estimate of $2.89.