Microsoft will invest about $3 billion to expand capacity for artificial intelligence and its Azure cloud-computing services ...