Skip to content

Commit b9a7811

Browse files
Update how-to-create-access-environments.md
1 parent 2b6f87a commit b9a7811

File tree

1 file changed

+15
-30
lines changed

1 file changed

+15
-30
lines changed

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

Lines changed: 15 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -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

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

6348
```azurecli
@@ -74,7 +59,7 @@ Complete the following steps in the Azure CLI to create an environment and confi
7459

7560
```azurecli
7661
az config set defaults.group=<name>
77-
```
62+
```
7863

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

@@ -91,18 +76,18 @@ Complete the following steps in the Azure CLI to create an environment and confi
9176
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:
9277

9378
```azurecli
94-
az devcenter dev environment create --dev-center-name <devcenter-name>
95-
--project-name <project-name> --environment-name <name> --environment-type <environment-type-name>
96-
--catalog-item-name <catalog-item-name> --catalog-name <catalog-name>
79+
az devcenter dev environment create --dev-center-name <devcenter-name>
80+
--project-name <project-name> --environment-name <name> --environment-type <environment-type-name>
81+
--catalog-item-name <catalog-item-name> --catalog-name <catalog-name>
9782
```
9883

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

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

@@ -131,7 +116,7 @@ To access an environment:
131116

132117
```azurecli
133118
az devcenter dev environment list --dev-center <devcenter-name> --project-name <project-name>
134-
```
119+
```
135120

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

0 commit comments

Comments
 (0)