Microsoft has made the first quarterly loss in its history after it wrote off some of the value of its…