Microsoft forecast on Wednesday a record $30 billion in capital spending for the current fiscal first quarter, after booming sales in its Azure cloud computing business showcased the growing returns on its massive bets on artificial intelligence.