Exclusive licensing deals and access to OpenAI's cutting-edge models have made Microsoft one of the biggest winners of the generative AI boom, fueling growth in its Azure cloud business and pushing its market value toward $4 trillion.