You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/deployment-environments/how-to-create-access-environments.md
+14-9Lines changed: 14 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,18 +7,23 @@ ms.author: rosemalcolm
7
7
ms.service: azure-deployment-environments
8
8
ms.custom: devx-track-azurecli, build-2023
9
9
ms.topic: how-to
10
-
ms.date: 12/07/2023
10
+
ms.date: 03/10/2025
11
+
12
+
#customer-intent: As a developer, I want to deploy an environment so that I can create resources and a resource group.
11
13
---
12
14
13
15
# Create and access an environment by using the Azure CLI
14
16
15
-
This guide explains how to create and access an [environment](concept-environments-key-concepts.md#environments) in an existing Azure Deployment Environments project by using the Azure CLI.
17
+
This article explains how to create and access an [environment](concept-environments-key-concepts.md#environments) in an existing Azure Deployment Environments project by using the Azure CLI.
16
18
17
19
## Prerequisites
18
20
19
-
-[Install the Azure CLI extension for Azure Deployment Environments](how-to-install-devcenter-cli-extension.md)
20
-
-[Create and configure a dev center by using the Azure CLI](how-to-create-configure-dev-center.md)
21
-
-[Create and configure a project by using the Azure CLI](how-to-create-configure-projects.md)
21
+
|Category|Requirement|
22
+
|-|-|
23
+
|Installation|[The Azure CLI extension for Azure Deployment Environments](how-to-install-devcenter-cli-extension.md).|
24
+
|Procedure|Completion of [Create and configure a dev center by using the Azure CLI](how-to-create-configure-dev-center.md).|
25
+
|Procedure|Completion of [Create and configure a project by using the Azure CLI](how-to-create-configure-projects.md).|
26
+
|Permissions|To create an environment: The [Deployment Environments User](how-to-configure-deployment-environments-user.md) role, the [DevCenter Project Admin](how-to-configure-project-admin.md) role, or a built-in role that has appropriate permissions. |
22
27
23
28
## Create an environment
24
29
@@ -34,13 +39,13 @@ Complete the following steps in the Azure CLI to create an environment and confi
34
39
az login
35
40
```
36
41
37
-
1. Install the Azure Dev Center extension for the CLI.
42
+
1. Install or upgrade the Azure Dev Center extension for the CLI:
38
43
39
44
```azurecli
40
45
az extension add --name devcenter --upgrade
41
46
```
42
47
43
-
1. List all the Azure Deployment Environments projects you have access to:
48
+
1. List all the Azure Deployment Environments projects that you have access to:
44
49
45
50
```azurecli
46
51
az graph query -q "Resources | where type =~ 'microsoft.devcenter/projects'" -o table
@@ -58,7 +63,7 @@ Complete the following steps in the Azure CLI to create an environment and confi
58
63
az config set defaults.group=<resourceGroupName>
59
64
```
60
65
61
-
1. List the type of environments you can create in a specific project:
66
+
1. List the type of environments that you can create in a specific project:
62
67
63
68
```azurecli
64
69
az devcenter dev environment-type list --dev-center <devcenterName> --project-name <projectName> -o table
@@ -70,7 +75,7 @@ Complete the following steps in the Azure CLI to create an environment and confi
70
75
az devcenter dev environment-definition list --dev-center <devcenterName> --project-name <projectName> -o table
71
76
```
72
77
73
-
1. Create an environment by using an *environment-definition* (an infrastructure as code template defined in the [environment.yaml](configure-environment-definition.md#add-a-new-environment-definition) file) from the list of available environment definitions:
78
+
1. Create an environment by using an *environment-definition* (an infrastructure-as-code template that's defined in the [environment.yaml](configure-environment-definition.md#add-a-new-environment-definition) file) from the list of available environment definitions:
74
79
75
80
```azurecli
76
81
az devcenter dev environment create --dev-center-name <devcenterName>
> Only users who have the [Deployment Environments User](../how-to-configure-deployment-environments-user.md) role, the [DevCenter Project Admin](../how-to-configure-project-admin.md) role, or a built-in role that has appropriate permissions can create an environment. Users who have the [Deployment Environments Reader](../how-to-configure-deployment-environments-user.md) role can view their own environments, and environments created by others.
10
+
> Only users who have the [Deployment Environments User](../how-to-configure-deployment-environments-user.md) role, the [DevCenter Project Admin](../how-to-configure-project-admin.md) role, or a built-in role that has appropriate permissions can create an environment. Users who have the [Deployment Environments Reader](../how-to-configure-deployment-environments-user.md) role can view their own environments and environments created by others.
0 commit comments