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
+25-20Lines changed: 25 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,25 +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
-
ms.date: 11/29/2023
10
+
ms.date: 03/19/2025
11
+
12
+
#customer intent: As a platform engineer, I want to create a project in Azure Deployment Environments so that my teams can deploy applications.
11
13
---
12
14
13
-
# Create and configure a project by using the Azure CLI
15
+
# Create and configure a project by using Azure CLI
14
16
15
-
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).
16
18
17
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.
18
20
19
21
## Prerequisites
20
22
21
-
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
22
-
- 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).|
23
28
24
29
## Create a project
25
30
@@ -31,7 +36,7 @@ To create a project in your dev center:
31
36
az login
32
37
```
33
38
34
-
1. Install the Azure CLI *devcenter* extension.
39
+
1. Install the Azure CLI *devcenter* extension:
35
40
36
41
```azurecli
37
42
az extension add --name devcenter --upgrade
@@ -49,20 +54,20 @@ To create a project in your dev center:
49
54
az configure --defaults group=<resourceGroupName>
50
55
```
51
56
52
-
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.
53
58
54
59
```azurecli
55
60
az configure --defaults location=eastus
56
61
```
57
62
58
-
1. Retrieve dev center resource ID:
63
+
1. Retrieve the dev center resource ID:
59
64
60
65
```azurecli
61
66
DEVCID=$(az devcenter admin devcenter show -n <devcenterName> --query id -o tsv)
62
67
echo $DEVCID
63
68
```
64
69
65
-
1. Create project in dev center:
70
+
1. Create the project in the dev center:
66
71
67
72
```azurecli
68
73
az devcenter admin project create -n <projectName> \
@@ -82,14 +87,14 @@ Before you can create environment types, you must give the managed identity that
82
87
83
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).
84
89
85
-
1. Retrieve Subscription ID:
90
+
1. Retrieve the subscription ID:
86
91
87
92
```azurecli
88
93
SUBID=$(az account show --name <subscriptionName> --query id -o tsv)
89
94
echo $SUBID
90
95
```
91
96
92
-
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:
93
98
94
99
```azurecli
95
100
OID=$(az ad sp list --display-name <devcenterName> --query [].id -o tsv)
@@ -108,20 +113,20 @@ In this quickstart, you assign the Owner role to the system-assigned managed ide
108
113
109
114
To configure a project, add a [project environment type](how-to-configure-project-environment-types.md):
110
115
111
-
1. Retrieve the Role ID for the Owner of the subscription:
116
+
1. Retrieve the role ID for the owner of the subscription:
112
117
113
118
```azurecli
114
-
# Remove group default scope for next command. Leave blank for group.
119
+
# Remove the group default scope for next the command.
115
120
az configure --defaults group=
116
121
117
122
ROID=$(az role definition list -n "Owner" --scope /subscriptions/$SUBID --query [].name -o tsv)
118
123
echo $ROID
119
124
120
-
# Set default resource group again
125
+
# Set the default resource group again.
121
126
az configure --defaults group=<resourceGroupName>
122
127
```
123
128
124
-
1. Show allowed environment type for the project:
129
+
1. Show allowed environment types for the project:
125
130
126
131
```azurecli
127
132
az devcenter admin project-allowed-environment-type list --project <projectName> --query [].name
@@ -145,7 +150,7 @@ To configure a project, add a [project environment type](how-to-configure-projec
145
150
146
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.
147
152
148
-
1. Retrieve your own Object ID:
153
+
1. Retrieve your own object ID:
149
154
150
155
```azurecli
151
156
MYOID=$(az ad signed-in-user show --query id -o tsv)
@@ -171,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:
177
182
178
183
> [!div class="nextstepaction"]
179
184
> [Create and access an environment by using the Azure CLI](how-to-create-access-environments.md)
0 commit comments