Microsoft Corp. signed up business-software vendor SAP SE as a cloud partner, its latest effort at using alliances to challenge Amazon.com Inc.’s dominance in the market for web-based, on-demand computing resources.

Such tie-ups are aimed at giving big corporate customers comfort in shifting computing operations from their own data centers to companies with which they have long worked.

The...