Microsoft beats Amazon to win the billion-dollar contract