Microsoft has signed two multibillion-dollar infrastructure agreements aimed at expanding its capacity to support artificial intelligence workloads.