Azure CLI · 2018 archive
Create Azure subscriptions with the Azure CLI
Review the original 2018 Azure CLI workflow for subscription creation, extension installation, enrollment accounts, and offer types.
This article records how Azure subscription creation worked through an Azure CLI extension during a 2018 public preview.
Do not run the commands as current production guidance. Azure billing accounts, enrollment models, offer types, CLI extensions, and permissions have changed. Confirm the supported workflow for your agreement in current Microsoft documentation.
Why the extension mattered in 2018
At the time, Terraform and the Azure CLI normally worked inside an existing subscription. Creating that subscription still required a separate billing workflow.
Microsoft introduced a preview API and CLI extension for selected Enterprise Agreement scenarios. The extension added subscription commands that were not part of the base CLI installation.
Check the CLI and available extensions
The original article began by checking the installed Azure CLI version:
az --versionaz extension list-available --output tableThe output showed which extension packages were available.

The preview workflow installed the subscription extension:
az extension add --name subscriptionaz account --help
The archived creation command
The 2018 preview documented a command shaped like this:
az account create \ --enrollment-account-name <enrollment-account-name> \ --offer-type <offer-type>Enrollment accounts could be listed with:
az billing enrollment-account listThe original post referred to two offer identifiers and noted that access depended on the organisation’s Enterprise Agreement or Cloud Solution Provider arrangement. We have removed those identifiers because this archive does not establish that they remain valid.
What must be verified now
Before automating subscription creation, confirm:
- the billing-account and agreement type
- the supported subscription-creation API
- the identity and billing permissions required
- management-group placement and policy inheritance
- naming, tags, budgets, and ownership
- whether the workflow is idempotent and auditable
A user’s ability to create a subscription in the Azure portal is not enough evidence that an automated identity has the required billing permissions.
Use Microsoft’s current Azure subscription creation guidance and the Azure CLI extensions repository to identify the supported path.
Why keep this page
The page is useful as a record of an early automation gap and the extension mechanism used to bridge it. It is not a supported runbook.
A current implementation should be tested in a nonproduction billing scope and reviewed by the team that owns enrollment, policy, budgets, and subscription lifecycle.
Turn the article into a practical next step
Bring the use case, constraints, and current platform. We can help you identify what to test or decide next.