Microsoft said it plans to invest $10 billion in Japan between 2026 and 2029 to build AI infrastructure.