Microsoft generates revenue through several streams, primarily from software licenses, cloud services, hardware sales, and advertising. The subscription model, particularly with Office 365 and Azure, has become an increasingly significant revenue driver.