Microsoft and Amazon both beat cloud expectations this week, and Microsoft's headcount fell for the first time since 2016.