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-configure-projects.md
+22-19Lines changed: 22 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,27 +1,30 @@
1
1
---
2
-
title: Create and configure a project by using the Azure CLI
2
+
title: Create and configure a project by using Azure CLI
3
3
titleSuffix: Azure Deployment Environments
4
-
description: Learn how to create a project in Azure Deployment Environments and associate the project with a dev center using the Azure CLI.
4
+
description: Learn how to use Azure CLI to create a project in Azure Deployment Environments and associate the project with a dev center.
5
5
author: renato-marciano
6
6
ms.author: remarcia
7
7
ms.service: azure-deployment-environments
8
8
ms.custom: devx-track-azurecli, build-2023
9
9
ms.topic: quickstart
10
10
ms.date: 03/19/2025
11
11
12
-
#
12
+
#customer intent: As a platform engineer, I want to create a project in Azure Deployment Environments so that my teams can deploy applications.
13
13
---
14
14
15
-
# Create and configure a project by using the Azure CLI
15
+
# Create and configure a project by using Azure CLI
16
16
17
-
This quickstart guide shows you how to create a project in Azure Deployment Environments. Then, you associate the project with the dev center you created in [Create and configure a dev center by using the Azure CLI](how-to-create-configure-dev-center.md).
17
+
In this quickstart, you create a project in Azure Deployment Environments. You then associate the project with the dev center you created in [Create and configure a dev center by using the Azure CLI](how-to-create-configure-dev-center.md).
18
18
19
19
A platform engineering team typically creates projects and provides project access to development teams. Development teams then create [environments](concept-environments-key-concepts.md#environments) by using [environment definitions](concept-environments-key-concepts.md#environment-definitions), connect to individual resources, and deploy applications.
20
20
21
21
## Prerequisites
22
22
23
-
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
24
-
- Azure role-based access control role with permissions to create and manage resources in the subscription, such as [Contributor](../role-based-access-control/built-in-roles.md#contributor) or [Owner](../role-based-access-control/built-in-roles.md#owner).
23
+
|Category|Requirement|
24
+
|-|-|
25
+
|**Subcription**|An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).|
26
+
|**Permissions**| Azure role-based access control role with permissions to create and manage resources in the subscription, such as [Contributor](../role-based-access-control/built-in-roles.md#contributor) or [Owner](../role-based-access-control/built-in-roles.md#owner).|
27
+
|**Resource**|- A [dev center](how-to-create-configure-dev-center.md).|
25
28
26
29
## Create a project
27
30
@@ -33,7 +36,7 @@ To create a project in your dev center:
33
36
az login
34
37
```
35
38
36
-
1. Install the Azure CLI *devcenter* extension.
39
+
1. Install the Azure CLI *devcenter* extension:
37
40
38
41
```azurecli
39
42
az extension add --name devcenter --upgrade
@@ -51,20 +54,20 @@ To create a project in your dev center:
51
54
az configure --defaults group=<resourceGroupName>
52
55
```
53
56
54
-
1. Configure the default location as the location where your dev center resides. Location of project must match the location of dev center:
57
+
1. Configure the default location as the location where your dev center resides. The location of the project must match the location of the dev center.
55
58
56
59
```azurecli
57
60
az configure --defaults location=eastus
58
61
```
59
62
60
-
1. Retrieve dev center resource ID:
63
+
1. Retrieve the dev center resource ID:
61
64
62
65
```azurecli
63
66
DEVCID=$(az devcenter admin devcenter show -n <devcenterName> --query id -o tsv)
64
67
echo $DEVCID
65
68
```
66
69
67
-
1. Create project in dev center:
70
+
1. Create the project in the dev center:
68
71
69
72
```azurecli
70
73
az devcenter admin project create -n <projectName> \
@@ -84,14 +87,14 @@ Before you can create environment types, you must give the managed identity that
84
87
85
88
In this quickstart, you assign the Owner role to the system-assigned managed identity that you configured previously: [Attach a system-assigned managed identity](quickstart-create-and-configure-devcenter.md#attach-a-system-assigned-managed-identity).
86
89
87
-
1. Retrieve Subscription ID:
90
+
1. Retrieve the subscription ID:
88
91
89
92
```azurecli
90
93
SUBID=$(az account show --name <subscriptionName> --query id -o tsv)
91
94
echo $SUBID
92
95
```
93
96
94
-
1. Retrieve the Object ID of the dev center's identity using the name of the dev center resource:
97
+
1. Retrieve the object ID of the dev center's identity by using the name of the dev center resource:
95
98
96
99
```azurecli
97
100
OID=$(az ad sp list --display-name <devcenterName> --query [].id -o tsv)
@@ -110,16 +113,16 @@ In this quickstart, you assign the Owner role to the system-assigned managed ide
110
113
111
114
To configure a project, add a [project environment type](how-to-configure-project-environment-types.md):
112
115
113
-
1. Retrieve the Role ID for the Owner of the subscription:
116
+
1. Retrieve the role ID for the owner of the subscription:
114
117
115
118
```azurecli
116
-
# Remove group default scope for next command. Leave blank for group.
119
+
# Remove the group default scope for next the command.
117
120
az configure --defaults group=
118
121
119
122
ROID=$(az role definition list -n "Owner" --scope /subscriptions/$SUBID --query [].name -o tsv)
120
123
echo $ROID
121
124
122
-
# Set default resource group again
125
+
# Set the default resource group again.
123
126
az configure --defaults group=<resourceGroupName>
124
127
```
125
128
@@ -147,7 +150,7 @@ To configure a project, add a [project environment type](how-to-configure-projec
147
150
148
151
In this quickstart, you give access to your own ID. Optionally, you can replace the value of `--assignee` for the following commands with another member's object ID.
149
152
150
-
1. Retrieve your own Object ID:
153
+
1. Retrieve your own object ID:
151
154
152
155
```azurecli
153
156
MYOID=$(az ad signed-in-user show --query id -o tsv)
@@ -173,9 +176,9 @@ In this quickstart, you give access to your own ID. Optionally, you can replace
In this quickstart, you created a project and granted project access to your development team. To learn how your development team members can create environments, advance to the next quickstart.
181
+
In this quickstart, you created a project and granted project access to your development team. To learn how your development team members can create environments, go to the next quickstart:
179
182
180
183
> [!div class="nextstepaction"]
181
184
> [Create and access an environment by using the Azure CLI](how-to-create-access-environments.md)
0 commit comments