Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit 06fb8f5

Browse files
authored
Merge pull request #628 from MicrosoftLearning/update-service-connection-instructions
update service connection steps
2 parents 9bdefaa + 6b685d8 commit 06fb8f5

1 file changed

Lines changed: 18 additions & 15 deletions

File tree

Instructions/Labs/AZ400_M00_Validate_lab_environment.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
lab:
3-
title: 'Validate lab environment'
4-
module: 'Module 0: Welcome'
3+
title: "Validate lab environment"
4+
module: "Module 0: Welcome"
55
---
66

77
# Validate lab environment
@@ -13,7 +13,6 @@ In preparation for the labs, it is crucial to have your environment correctly se
1313
- **Set up an Azure Subscription:** If you don't already have an Azure subscription, create one by following the instructions on this page or visit [https://azure.microsoft.com/free](https://azure.microsoft.com/free) to sign up for a free.
1414

1515
- **Set up an Azure DevOps organization:** If you don't already have an Azure DevOps organization that you can use for the labs, create one by following the instructions on this page, or at [Create an organization or project collection](https://learn.microsoft.com/azure/devops/organizations/accounts/create-organization).
16-
1716
- [Git for Windows download page](https://gitforwindows.org/). This will be installed as part of prerequisites for this lab.
1817

1918
- [Visual Studio Code](https://code.visualstudio.com/). This will be installed as part of prerequisites for this lab.
@@ -38,13 +37,13 @@ In preparation for the labs, it is crucial to have your environment correctly se
3837

3938
1. In the drop-down box on the left, choose **Default Directory**, instead of **Microsoft Account**.
4039

41-
1. If prompted (*"We need a few more details"*), provide your name, e-mail address, and location and click **Continue**.
40+
1. If prompted (_"We need a few more details"_), provide your name, e-mail address, and location and click **Continue**.
4241

4342
1. Back at `https://aex.dev.azure.com` with **Default Directory** selected click the blue button **Create new organization**.
4443

45-
1. Accept the *Terms of Service* by clicking **Continue**.
44+
1. Accept the _Terms of Service_ by clicking **Continue**.
4645

47-
1. If prompted (*"Almost done"*), leave the name for the Azure DevOps organization at default (it needs to be a globally unique name) and pick a hosting location close to you from the list.
46+
1. If prompted (_"Almost done"_), leave the name for the Azure DevOps organization at default (it needs to be a globally unique name) and pick a hosting location close to you from the list.
4847

4948
1. Once the newly created organization opens in **Azure DevOps**, select **Organization settings** in the bottom left corner.
5049

@@ -54,7 +53,7 @@ In preparation for the labs, it is crucial to have your environment correctly se
5453

5554
1. Once the screen shows the linked Azure Subscription ID at the top, change the number of **Paid parallel jobs** for **MS Hosted CI/CD** from 0 to **1**. Then select **SAVE** button at the bottom.
5655

57-
> **Note**: You may **wait a couple of minutes before using the CI/CD capabilities** so that the new settings are reflected in the backend. Otherwise, you will still see the message *"No hosted parallelism has been purchased or granted"*.
56+
> **Note**: You may **wait a couple of minutes before using the CI/CD capabilities** so that the new settings are reflected in the backend. Otherwise, you will still see the message _"No hosted parallelism has been purchased or granted"_.
5857
5958
1. In **Organization Settings**, go to section **Pipelines** and click **Settings**.
6059

@@ -81,6 +80,7 @@ First, you'll create an **eShopOnWeb** Azure DevOps project to be used by severa
8180
1. Open your browser and navigate to your Azure DevOps organization.
8281

8382
1. Select the **New Project** option and use the following settings:
83+
8484
- name: **eShopOnWeb**
8585
- visibility: **Private**
8686
- Advanced: Version Control: **Git**
@@ -112,7 +112,7 @@ Now, you'll import the eShopOnWeb into your git repository.
112112
- **.github** folder container YAML GitHub workflow definitions.
113113
- **src** folder contains the .NET 8 website used on the lab scenarios.
114114

115-
1. Leave the web browser window open.
115+
1. Leave the web browser window open.
116116

117117
1. Go to **Repos > Branches**.
118118

@@ -136,20 +136,23 @@ You will need to create a service connection in Azure DevOps which will allow yo
136136

137137
![Screenshot of the new service connection creation button.](images/new-service-connection.png)
138138

139-
1. On the **New service connection** blade, select **Azure Resource Manager** and **Next** (may need to scroll down).
139+
1. On the **New service connection** blade, select **Azure Resource Manager** and **Next** (you may need to scroll down).
140+
141+
1. Select **App registration (automatic)** from the **Identity type** dropbox.
140142

141-
1. Select **Workload Identity federation (automatic)** and **Next**.
143+
1. Select **Workload Identity federation** and **Subscription** under the **Scope level**.
142144

143-
> **Note**: You can also use **Workload identity federation (manual)** if you prefer to manually configure the service connection. Follow the steps in the [Azure DevOps documentation](https://learn.microsoft.com/azure/devops/pipelines/library/connect-to-azure) to create the service connection manually.
145+
> **Note**: You can also use **App registration or managed identity (manual)** if you prefer to manually configure the service connection. Follow the steps in the [Azure DevOps documentation](https://learn.microsoft.com/azure/devops/pipelines/library/connect-to-azure) to create the service connection manually.
144146
145147
1. Fill in the empty fields using the information:
146-
- **Subscription**: Select your Azure subscription.
147-
- **Resource group**: Select the resource group where you want to deploy resources. If you don't have a resource group, you can create one in the Azure portal following the instructions in [Manage Azure resource groups by using the Azure portal](https://learn.microsoft.com/azure/azure-resource-manager/management/manage-resource-groups-portal).
148-
- **Service connection name**: Type **`azure subs`**. This name will be referenced in YAML pipelines to access your Azure subscription.
148+
149+
- **Subscription**: Select your Azure subscription.
150+
- **Resource group**: Select the resource group where you want to deploy resources. If you don't have a resource group, you can create one in the Azure portal following the instructions in [Manage Azure resource groups by using the Azure portal](https://learn.microsoft.com/azure/azure-resource-manager/management/manage-resource-groups-portal).
151+
- **Service connection name**: Type **`azure subs`**. This name will be referenced in YAML pipelines to access your Azure subscription.
149152

150153
1. Make sure the **Grant access permission to all pipelines** option is unchecked and select **Save**.
151154

152-
> **Note:** The **Grant access permission to all pipelines** option is not recommended for production environments. It is only used in this lab to simplify the configuration of the pipeline.
155+
> **Important:** The **Grant access permission to all pipelines** option is not recommended for production environments. It is only used in this lab to simplify the configuration of the pipeline.
153156
154157
> **Note**: If you see an error message indicating you don't have the necessary permissions to create a service connection, try again, or configure the service connection manually.
155158

0 commit comments

Comments
 (0)