Shares in the software giant rose 7.3 percent to $551 in after-hours trading as investors anticipate greater artificial intelligence offerings from the Azure cloud-computing business.