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
#customer intent: As a platform engineer, I want to configure project environment types so that I can preconfigure the environments that my team will create.
11
13
---
12
14
13
15
# Configure project environment types
14
16
15
-
This guide explains how to add environment types to projects in Azure Deployment Environments.
17
+
This article explains how to add environment types to projects in Azure Deployment Environments. It also explains how to update, enable, disable, and delete environment types.
16
18
17
19
Project environment types are a subset of the [environment types configured for a dev center](how-to-configure-devcenter-environment-types.md). They help preconfigure the environments that a specific development team can create.
18
20
@@ -25,66 +27,58 @@ Project environment types allow platform engineering teams to:
25
27
You can provide subscriptions for environment types in a project to automatically apply the right set of policies on environments. This action also abstracts Azure governance-related concepts from your development teams.
26
28
- Preconfigure the managed identity that developers use to perform the deployment, along with the access levels that development teams get after the environment is created.
27
29
28
-
In this article, you'll learn how to:
29
-
30
-
* Add a new project environment type.
31
-
* Update a project environment type.
32
-
* Enable or disable a project environment type.
33
-
* Delete a project environment type.
34
-
35
30
## Prerequisites
36
-
Before you configure a project environment type, you need:
37
31
38
32
- An [environment type at the dev center level](how-to-configure-devcenter-environment-types.md).
39
33
-[Write access](/azure/devops/organizations/security/add-users-team-project) to a specific project.
40
34
41
-
## Add a new project environment type
35
+
## Add a project environment type
42
36
43
-
When you configure a new project environment type, your development teams can use it to create an environment. They'll create the environment in the mapped subscription by using the configured deployment identity, along with permissions granted to resources created as part of the environment. All the associated policies are automatically applied.
37
+
When you configure a project environment type, your development teams can use it to create an environment. They'll create the environment in the mapped subscription by using the configured deployment identity, along with permissions granted to resources created as part of the environment. All the associated policies are automatically applied.
44
38
45
-
Add a new project environment type as follows:
39
+
To add a new project environment type:
46
40
47
41
1. Sign in to the [Azure portal](https://portal.azure.com) and go to Azure Deployment Environments.
48
42
49
-
1.Select **Projects** from the left pane, and then choose the specific project.
43
+
1.In the left pane, under **Configure**, select **Projects**. On the **Projects** page, select the specific project.
50
44
51
-
1. Select **Environment types**from the left pane.
45
+
1. Select **Environment types**in the left pane.
52
46
53
47
1. Select **+ Add**.
54
48
55
-
:::image type="content" source="media/configure-project-environment-types/add-new-project-environment-type.png" alt-text="Screenshot that shows selections for adding a project environment type." lightbox="media/configure-project-environment-types/add-new-project-environment-type.png":::
49
+
:::image type="content" source="media/configure-project-environment-types/add-new-project-environment-type.png" alt-text="Screenshot that shows how to add a project environment type." lightbox="media/configure-project-environment-types/add-new-project-environment-type.png":::
56
50
57
-
1. On the **Add environment type to Project** page, provide the following details:
51
+
1. On the **Add environment type to \<project>** page, provide the following details:
58
52
59
53
|Name |Value |
60
54
|---------|----------|
61
55
|**Type**| Select a dev center environment type to enable for the project.|
62
56
|**Deployment subscription**| Select the target subscription in which the environment will be created.|
63
57
|**Deployment identity**| Select either a system-assigned managed identity or a user-assigned managed identity that will be used to perform deployments on behalf of the user.|
64
-
|**Permissions on environment resources** > **Environment Creator Role(s)**| Select the roles that get access to the environment resources.|
58
+
|**Permissions on environment resources** > **Environment creator role(s)**| Select the roles that get access to the environment resources.|
65
59
|**Permissions on environment resources** > **Additional access**| Select the users or Microsoft Entra groups that are granted specific roles on the environment resources.|
66
60
|**Tags** (optional) | Provide a name and value for tags that are applied on all resources created as part of the environments.|
67
61
68
-
:::image type="content" source="media/configure-project-environment-types/add-project-environment-type-page.png" alt-text="Screenshot that shows adding details on the page for adding a project environment type." lightbox="media/configure-project-environment-types/add-project-environment-type-page.png":::
62
+
:::image type="content" source="media/configure-project-environment-types/add-project-environment-type-page.png" alt-text="Screenshot that shows the page for adding a project environment type." lightbox="media/configure-project-environment-types/add-project-environment-type-page.png":::
69
63
70
64
> [!NOTE]
71
-
> At least one managed identity (system assigned or user assigned) must be enabled for deployment identity. It will be used to perform the environment deployment on behalf of the developer. Additionally, the identity attached to the dev center should be [granted Contributor and User Access Administrator access to the deployment subscription](how-to-configure-managed-identity.md) configured per environment type.
65
+
> At least one managed identity (system assigned or user assigned) must be enabled for deployment identity. It will be used to perform the environment deployment on behalf of the developer. Additionally, the identity attached to the dev center should be [granted Contributor and User Access Administrator access to the deployment subscription](how-to-configure-managed-identity.md)that's configured for the environment type.
72
66
73
67
## Update a project environment type
74
68
75
-
You can update a project environment type so that it uses a different subscription or deployment identity when developers deploy environments. Updating a project environment type affects only the creation of new environments. Existing environments will continue to exist in the previously mapped subscription.
69
+
You can update a project environment type so that it uses a different subscription or deployment identity when developers deploy environments. Updating a project environment type affects only newly created environments. Existing environments will continue to exist in the previously mapped subscription.
76
70
77
-
Update an existing project environment type as follows:
71
+
To update an existing project environment type:
78
72
79
73
1. In the Azure portal, go to Azure Deployment Environments.
80
74
81
-
1.Select **Projects** from the left pane, and then choose the specific project.
75
+
1.In the left pane, under **Configure**, select **Projects**. On the **Projects** page, select the specific project.
82
76
83
-
1. Select **Environment types**from the left pane.
77
+
1. Select **Environment types**in the left pane.
84
78
85
-
1.For the environment type that you want to update, select the ellipsis (**...**) on the specific row, then choose**Edit**.
79
+
1.On the row of the environment type that you want to update, select the ellipsis (**...**) and then select**Edit**.
86
80
87
-
1. On the **Edit environment type** page, update the previous configuration, and then select **Submit**.
81
+
1. On the **Edit \<environment type>** page, update the configuration, and then select **Update**.
88
82
89
83
## Enable or disable a project environment type
90
84
@@ -94,27 +88,27 @@ When you enable an environment type (or re-enable one that you disabled), develo
94
88
95
89
1. In the Azure portal, go to Azure Deployment Environments.
96
90
97
-
1.Select **Projects** from the left pane, and then choose the specific project.
91
+
1.In the left pane, under **Configure**, select **Projects**. On the **Projects** page, select the specific project.
98
92
99
-
1. Select **Environment types**from the left pane.
93
+
1. Select **Environment types**in the left pane.
100
94
101
95
1. Select the environment type to enable or disable.
102
96
103
-
1. Select **Enable** or **Disable**from the command bar and then confirm.
97
+
1. Select **Enable** or **Disable**at the top of the page.
104
98
105
99
## Delete a project environment type
106
100
107
101
You can delete a specific project environment type only if no deployed environments in the project are using it. After you delete a project environment type, development teams can't use it to create environments.
108
102
109
103
1. In the Azure portal, go to Azure Deployment Environments.
110
104
111
-
1.Select **Projects** from the left pane, and then choose the specific project.
105
+
1. In the left pane, under **Configure**, select **Projects**. On the **Projects** page, select the specific project.
112
106
113
-
1. Select **Environment types**from the left pane.
107
+
1. Select **Environment types**in the left pane.
114
108
115
109
1. Select a project environment type to delete.
116
110
117
-
1. Select **Delete**from the command bar and then confirm.
111
+
1. Select **Delete**at the top of the page, and then confirm.
0 commit comments