Microsoft will invest $1.7 billion over the next four years to build cloud computing and artificial intelligence infrastructure in Indonesia.