Skip to content

Commit 7616ad3

Browse files
authored
Merge pull request #230659 from colbylwilliams/fix-devcenter-cli
Fix devcenter cli
2 parents 7576314 + 14ef7c8 commit 7616ad3

File tree

1 file changed

+16
-31
lines changed

1 file changed

+16
-31
lines changed

articles/deployment-environments/how-to-create-access-environments.md

Lines changed: 16 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.author: rosemalcolm
77
ms.service: deployment-environments
88
ms.custom: ignite-2022
99
ms.topic: quickstart
10-
ms.date: 01/26/2022
10+
ms.date: 03/14/2023
1111
---
1212

1313
# Create and access an environment by using the Azure CLI
@@ -21,28 +21,7 @@ This article shows you how to create and access an [environment](concept-environ
2121

2222
- [Create and configure a dev center](quickstart-create-and-configure-devcenter.md).
2323
- [Create and configure a project](quickstart-create-and-configure-projects.md).
24-
- Install the Azure Deployment Environments Azure CLI extension:
25-
26-
1. [Download and install the Azure CLI](/cli/azure/install-azure-cli).
27-
1. Install the Azure Deployment Environments AZ CLI extension:
28-
29-
- **Automated installation**
30-
31-
In PowerShell, run the https://aka.ms/DevCenter/Install-DevCenterCli.ps1 script:
32-
33-
```powershell
34-
iex "& { $(irm https://aka.ms/DevCenter/Install-DevCenterCli.ps1 ) }"
35-
```
36-
37-
The script uninstalls any existing dev center extension and installs the latest version.
38-
39-
- **Manual installation**
40-
41-
Run the following command in the Azure CLI:
42-
43-
```azurecli
44-
az extension add --source https://fidalgosetup.blob.core.windows.net/cli-extensions/devcenter-0.1.0-py3-none-any.whl
45-
```
24+
- [Install the Azure CLI](/cli/azure/install-azure-cli).
4625

4726
## Create an environment
4827

@@ -57,6 +36,12 @@ Complete the following steps in the Azure CLI to create an environment and confi
5736
az login
5837
```
5938
39+
1. Install the Azure Dev Center extension for the CLI.
40+
41+
```azurecli
42+
az extension add --name devcenter --upgrade
43+
```
44+
6045
1. List all the Azure Deployment Environments projects you have access to:
6146

6247
```azurecli
@@ -73,7 +58,7 @@ Complete the following steps in the Azure CLI to create an environment and confi
7358

7459
```azurecli
7560
az config set defaults.group=<name>
76-
```
61+
```
7762

7863
1. List the type of environments you can create in a specific project:
7964

@@ -90,18 +75,18 @@ Complete the following steps in the Azure CLI to create an environment and confi
9075
1. Create an environment by using a *catalog-item* (an infrastructure as code template defined in the [manifest.yaml](configure-catalog-item.md#add-a-new-catalog-item) file) from the list of available catalog items:
9176

9277
```azurecli
93-
az devcenter dev environment create --dev-center-name <devcenter-name>
94-
--project-name <project-name> --environment-name <name> --environment-type <environment-type-name>
95-
--catalog-item-name <catalog-item-name> --catalog-name <catalog-name>
78+
az devcenter dev environment create --dev-center-name <devcenter-name>
79+
--project-name <project-name> --environment-name <name> --environment-type <environment-type-name>
80+
--catalog-item-name <catalog-item-name> --catalog-name <catalog-name>
9681
```
9782

9883
If the specific *catalog-item* requires any parameters, use `--parameters` and provide the parameters as a JSON string or a JSON file. For example:
9984

10085
```json
10186
$params = "{ 'name': 'firstMsi', 'location': 'northeurope' }"
102-
az devcenter dev environment create --dev-center-name <devcenter-name>
103-
--project-name <project-name> --environment-name <name> --environment-type <environment-type-name>
104-
--catalog-item-name <catalog-item-name> --catalog-name <catalog-name>
87+
az devcenter dev environment create --dev-center-name <devcenter-name>
88+
--project-name <project-name> --environment-name <name> --environment-type <environment-type-name>
89+
--catalog-item-name <catalog-item-name> --catalog-name <catalog-name>
10590
--parameters $params
10691
```
10792

@@ -130,7 +115,7 @@ To access an environment:
130115

131116
```azurecli
132117
az devcenter dev environment list --dev-center <devcenter-name> --project-name <project-name>
133-
```
118+
```
134119

135120
1. View the access endpoints to various resources as defined in the ARM template outputs.
136121
1. Access the specific resources by using the endpoints.

0 commit comments

Comments
 (0)