devops_sl on Tue, 15 Nov 2016 10:12:51


I'm wondering if its possible to create a new subscription using PS or Azure CLI ?

We have an EA account and it will be useful for us to create a new subscription without going to the Portal



CHEEKATLAPRADEEP-MSFT on Tue, 15 Nov 2016 15:19:01

Hi Sathish,

Greetings from Microsoft Azure!

Azure PowerShell and Azure CLI cmdlets operates on an Azure subscription object, not your actual Azure subscription. To create and provision an Azure subscription visit Azure portal.

And there's no REST API or any other programmatic method for creating a subscription. Subscriptions have related security checks, specific plans, payment methods, etc. This part must be done via the or portal.

Once this is completed, then you can use the cmdlets to create, test, deploy, and manage solutions and services delivered through the Azure platform using Azure PowerShell or Azure CLI.

Hope this helps.





Kindly click "Mark as Answer" on the post that helps you, this can be beneficial to other community members reading the thread and also “Vote as Helpful”.