Skip to content

Commit e6b1d6f

Browse files
Merge pull request #296546 from v-albemi/create-project
Freshness Edit: Azure Deployment Environments Set 2
2 parents cdaae12 + 8260d0d commit e6b1d6f

File tree

1 file changed

+25
-20
lines changed

1 file changed

+25
-20
lines changed

articles/deployment-environments/how-to-create-configure-projects.md

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
11
---
2-
title: Create and configure a project by using the Azure CLI
2+
title: Create and configure a project by using Azure CLI
33
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.
55
author: renato-marciano
66
ms.author: remarcia
77
ms.service: azure-deployment-environments
88
ms.custom: devx-track-azurecli, build-2023
99
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.
1113
---
1214

13-
# Create and configure a project by using the Azure CLI
15+
# Create and configure a project by using Azure CLI
1416

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).
1618

1719
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.
1820

1921
## Prerequisites
2022

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).|
2328

2429
## Create a project
2530

@@ -31,7 +36,7 @@ To create a project in your dev center:
3136
az login
3237
```
3338
34-
1. Install the Azure CLI *devcenter* extension.
39+
1. Install the Azure CLI *devcenter* extension:
3540
3641
```azurecli
3742
az extension add --name devcenter --upgrade
@@ -49,20 +54,20 @@ To create a project in your dev center:
4954
az configure --defaults group=<resourceGroupName>
5055
```
5156

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.
5358

5459
```azurecli
5560
az configure --defaults location=eastus
5661
```
5762

58-
1. Retrieve dev center resource ID:
63+
1. Retrieve the dev center resource ID:
5964

6065
```azurecli
6166
DEVCID=$(az devcenter admin devcenter show -n <devcenterName> --query id -o tsv)
6267
echo $DEVCID
6368
```
6469
65-
1. Create project in dev center:
70+
1. Create the project in the dev center:
6671
6772
```azurecli
6873
az devcenter admin project create -n <projectName> \
@@ -82,14 +87,14 @@ Before you can create environment types, you must give the managed identity that
8287
8388
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).
8489
85-
1. Retrieve Subscription ID:
90+
1. Retrieve the subscription ID:
8691
8792
```azurecli
8893
SUBID=$(az account show --name <subscriptionName> --query id -o tsv)
8994
echo $SUBID
9095
```
9196
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:
9398
9499
```azurecli
95100
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
108113
109114
To configure a project, add a [project environment type](how-to-configure-project-environment-types.md):
110115
111-
1. Retrieve the Role ID for the Owner of the subscription:
116+
1. Retrieve the role ID for the owner of the subscription:
112117
113118
```azurecli
114-
# Remove group default scope for next command. Leave blank for group.
119+
# Remove the group default scope for next the command.
115120
az configure --defaults group=
116121
117122
ROID=$(az role definition list -n "Owner" --scope /subscriptions/$SUBID --query [].name -o tsv)
118123
echo $ROID
119124
120-
# Set default resource group again
125+
# Set the default resource group again.
121126
az configure --defaults group=<resourceGroupName>
122127
```
123128
124-
1. Show allowed environment type for the project:
129+
1. Show allowed environment types for the project:
125130
126131
```azurecli
127132
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
145150
146151
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.
147152
148-
1. Retrieve your own Object ID:
153+
1. Retrieve your own object ID:
149154
150155
```azurecli
151156
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
171176
172177
[!INCLUDE [note-deployment-environments-user](includes/note-deployment-environments-user.md)]
173178
174-
## Next steps
179+
## Next step
175180
176-
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:
177182
178183
> [!div class="nextstepaction"]
179184
> [Create and access an environment by using the Azure CLI](how-to-create-access-environments.md)

0 commit comments

Comments
 (0)