Microsoft forecasts that it will invest $80 billion this fiscal year to build AI-enabled data centers—a spending spree that ups the pressure on tech companies of all sizes to make the right call on how much money they should deploy into the fast-rising technology.