Microsoft Corp. is still suffering from a computing capacity crunch despite massive spending on data centers, a scenario that weighed on the company’s closely watched Azure cloud unit.