title | titleSuffix | description | services | ms.service | ms.custom | ms.topic | ms.author | author | ms.date |
---|---|---|---|---|---|---|---|---|---|
Install the devcenter Azure CLI extension |
Azure Deployment Environments |
Learn how to install the Azure CLI extension for Azure Deployment Environments so you can create resources from the command line. |
deployment-environments |
deployment-environments |
build-2023, devx-track-azurecli |
how-to |
rosemalcolm |
RoseHJM |
11/22/2023 |
In addition to the Azure admin portal and the developer portal, you can use the Azure Deployment Environments CLI extension to create resources. Azure Deployment Environments and Microsoft Dev Box use the same Azure CLI extension, which is called devcenter.
You first need to install the Azure CLI, and then install the devcenter extension.
-
Download and install the Azure CLI.
-
Install the devcenter extension by using the following command.
az extension add --name devcenter
-
Check that the devcenter extension was installed.
az extension list
If you already have the devcenter extension installed, you can update it.
az extension update --name devcenter
To remove the extension, use the following command.
az extension remove --name devcenter
You might find the following commands useful while you work with the devcenter extension.
-
Sign in to the Azure CLI with your account.
az login
-
Set your default subscription to the subscription where you're creating your specific Deployment Environments resources.
az account set --subscription <subscriptionId>
-
Set a default resource group so that you don't need to specify the resource group for each command.
az configure --defaults group=<resourceGroupName>
-
Get help for a command.
az devcenter admin --help
For complete command listings, see the Microsoft Dev Box and Azure Deployment Environments Azure CLI documentation.