Microsoft on Tuesday reported fiscal fourth-quarter profit of $16.7 billion, or $2.23 per share, falling short of analyst expectations for $2.29 per share—a rare disappointment from the tech giant that has consistently beat Wall Street expectations in recent years.