Create Azure subscriptions programmatically

This article helps you understand options available to programmatically create Azure subscriptions.

Using various REST APIs you can create a subscription for the following Azure agreement types:

  • Enterprise Agreement (EA)
  • Microsoft Customer Agreement (MCA)
  • Microsoft Partner Agreement (MPA)

You can't programmatically create additional subscriptions for other agreement types with REST APIs.

Requirements and details to create subscriptions differ for different agreements and API versions. See the following articles that apply to your situation:

Latest APIs:

These articles also show how to create subscriptions with an Azure Resource Manager template (ARM template). An ARM template helps automate the subscription creation process.

If you're still using preview APIs, you can continue to create subscriptions with them.

Next steps