Skip to content

Commit 2fbc45b

Browse files
committed
updates
1 parent e332e51 commit 2fbc45b

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

articles/deployment-environments/tutorial-deploy-environments-in-cicd-azure-devops.md

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ In this tutorial, you learn how to:
3636
- [Create an account for free](https://azure.microsoft.com/services/devops/?WT.mc_id=A261C142F).
3737
- An Azure DevOps organization and project.
3838
- In Azure Deployment Environments:
39-
- [Dev center and project](./quickstart-create-and-configure-devcenter.md).
39+
- [A dev center and a project](./quickstart-create-and-configure-devcenter.md).
4040
- [Sample catalog](https://github.com/Azure/deployment-environments) attached to the dev center.
4141

4242
## Create and configure an Azure Repos repository
4343

44-
1. Sign in to your Azure DevOps organization (`https://dev.azure.com/<your-organization>`). Replace `<your-organization>` with your project identifier. Select your project.
44+
1. Sign in to your Azure DevOps organization (`https://dev.azure.com/<your-organization>`). Replace `<your-organization>` with your project identifier.
45+
1. Select your project.
4546
1. Select **Repos** > **Files**.
4647
1. In **Import a repository**, select **Import**.
4748
1. In **Import a Git repository**, select or enter the following:
@@ -50,7 +51,7 @@ In this tutorial, you learn how to:
5051

5152
## Configure environment types
5253

53-
Environment types define the types of environments that your development teams can deploy. You can apply different settings for each environment type. You create environment types at the dev center level and at the project level.
54+
Environment types define the types of environments that your development teams can deploy. You can apply different settings for each environment type. You can create environment types at the dev center level and at the project level.
5455

5556
To create dev center environment types:
5657

@@ -88,35 +89,37 @@ To create project environment types:
8889

8990
## Configure a service connection
9091

91-
In Azure Pipelines, you create a *service connection* in your Azure DevOps project to access resources in your Azure subscription. When you create the service connection, Azure DevOps creates a Microsoft Entra service principal object.
92+
In Azure Pipelines, you create a *service connection* in your Azure DevOps project to access resources in your Azure subscription.
9293

93-
1. Sign in to your Azure DevOps organization (`https://dev.azure.com/<your-organization>`). Replace `<your-organization>` with your project identifier. Select your project.
94+
1. Sign in to your Azure DevOps organization (`https://dev.azure.com/<your-organization>`). Replace `<your-organization>` with your project identifier.
95+
1. Select your project.
9496
1. Select **Project settings** > **Service connections** > **Create service connection**.
95-
1. In the **New service connection** pane, select the **Azure Resource Manager**, and then select **Next**.
97+
1. In the **New service connection** pane, select **Azure Resource Manager**, and then select **Next**.
9698
1. Enter the following service connection details, and then select **Save** to create the service connection.
9799

98100
| Field | Value |
99101
| ----- | ----- |
100102
|**Identity type**|**Managed identity (agent-assigned)**|
101-
| **Scope Level** | *Subscription*. |
103+
| **Scope Level** | **Subscription** |
102104
| **Subscription ID** | Enter the ID of the Azure subscription that hosts your dev center resource. |
103105
| **Subscription name** | Enter the name of the subscription. |
104106
|**Tenant Id**|Enter the ID of the tenant.|
105107
| **Service Connection Name** | Enter a unique name for the service connection. |
106-
| **Grant access permission to all pipelines** | Select the checkbox. |
108+
| **Grant access permission to all pipelines** | Select this checkbox. |
107109

108110
### Grant the service connection access to the Deployment Environments project
109111

110-
Deployment Environments uses role-based access control to grant permissions for performing specific activities on your Deployment Environments resource. To make changes from a CI/CD pipeline, you grant the Deployment Environments User role to the service principal.
112+
Deployment Environments uses role-based access control to grant permissions for performing specific activities on your Deployment Environments resource. To make changes from a CI/CD pipeline, you grant the Deployment Environments User role to the managed identity.
111113

112114
1. In the [Azure portal](https://portal.azure.com/), go to your Deployment Environments project.
113-
1. In the left menu, under **Settings**, select **Identity**.
114-
1. On the **System assigned** tab, set the **Status** to **On**.
115-
1. Select **Save**, and then confirm that you want to enable the identity.
115+
1. If you don't have a managed identity for the project, complete these steps:
116+
1. In the left menu, under **Settings**, select **Identity**.
117+
1. On the **System assigned** tab, set the **Status** to **On**.
118+
1. Select **Save**, and then confirm that you want to enable the identity.
116119
1. Select **Access control (IAM)** > **Add** > **Add role assignment**.
117120
1. On the **Role** tab, select **Deployment Environments User** in the list of job function roles.
118121
1. On the **Members** tab, select **Managed identity** and **Select members**.
119-
1. In the Select managed identities tab, under Managed identity, select the **Project** identity, select the project name, and then select **Select**.
122+
1. In the **Select managed identities** tab, under **Managed identity**, select the **Project** identity, select the project name, and then select **Select**.
120123
1. On the **Review + assign** tab, select **Review + assign** to add the role assignment.
121124

122125
You can now use the service connection in your Azure Pipelines workflow definition to access your Deployment Environments environments.

0 commit comments

Comments
 (0)