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
{{ message }}
This repository was archived by the owner on Jan 21, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: Instructions/Labs/AZ400_M12_Feature_Flag_Management_with_LaunchDarkly_and_Azure_DevOps.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ In this task, you will create a feature flag in LaunchDarkly
88
88
89
89
1. From your lab computer, start a web browser, navigate to the [LaunchDarkly web site](https://app.launchdarkly.com/), and sign in using your account. Your browser session will be redirected to the **Default Project** portal where you can create a feature flag.
90
90
1. In the LaunchDarkly portal, in the vertical menu bar on the left, click **Feature flags**.
91
-
1.On the **Feature flags** pane, click **+ FLAG**.
91
+
1. On the **Feature flags** pane, click **Create FLAG**.
92
92
1. On the **Create a feature flag** pane, in the **Name** text box, type **Member portal** and click the **SAVE FLAG** button.
93
93
94
94
> **Note**: You've created a flag named **Member Portal**. Let's assume that you want to use this flag to determine the visibility of the **Member Portal** feature in your ASP.NET MVC web app.
@@ -113,11 +113,11 @@ In this task, you will integrate LaunchDarkly in your Web application.
113
113
> **Note**: In case the repo is empty, in the **Import a repository** section, select **Import**, on the **Import a Git repository** pane, in the **Clone URL** text box, enter `https://github.com/hsachinraj/PartsUnlimited.git`, and click **Import**.
114
114
115
115
1. On the **Files** pane, click **Clone**.
116
-
1.On the **Clone Repository** pane, in the **IDE** drop-down list, select **Visual Studio**. If prompted, select **Open Microsoft Visual Studio Web Protocol Handler Selector**. This will automatically launch Visual Studio.
116
+
1. On the **Clone Repository** pane, in the **IDE** drop-down list, select **Visual Studio**. If prompted, select **Open Microsoft Visual Studio Web Protocol Handler Selector**. This will automatically launch Visual Studio. Sign in using the Microsoft account associated with your Azure DevOps subscription.
117
117
1. Within the Visual Studio window, in the **Azure DevOps** dialog box, click **Clone** and, if prompted, sign in using the Microsoft account associated with your Azure DevOps subscription.
118
118
1. Within the Visual Studio window, click the top level **Git** menu, click **Local repositories**, click **Folder**, in the **Select Folder**, navigate to the local folder into which you cloned the LaunchDarkly repository, and click **Select Folder**.
119
119
1. Within the Visual Studio window, click the top level **View** menu and, in the dropdown menu, click **Git Changes**.
120
-
1.Within the Visual Studio window, at the top of the **Git Changes** pane, in the **master** dropdown list, click the down-pointing arrow head, in the drop-down dialog box, click **Remotes**, and, in the list of remote branches, select **origin/launch-darkly**.
120
+
1. Within the Visual Studio window, at the top of the **Git Changes** pane, in the **master** dropdown list, click the down-pointing arrow head, in the drop-down dialog box, click **Remotes**, and, in the list of remote branches, select **origin/launch-darkly**. Select **Check out**.
121
121
122
122
> **Note**: This will automatically check out the **launch-darkly** branch.
123
123
@@ -180,18 +180,18 @@ In this task, you will integrate LaunchDarkly in your Web application.
180
180
181
181
> **Note**: Similarly in **AccountController.cs** we have added LaunchDarkly code to **Login()** method which is responsible to show Login page once you click on **Member portal** icon. If the flag in LaunchDarkly is false, an HttpNotFound error will be returned for the Login page.
182
182
183
-
1. In the Visual Studio window, click **Save All** and click **IIS Express** to launch the application locally.
183
+
1. In the Visual Studio window, click **Save All** and click **IIS Express** to launch the application locally. If the **IIS Express** option isn't available, select the **Browser Link** option from the toolbar and select **Browser Link Dashboard**. From the dashboard select **View in browser**.
184
184
1. Verify that the **Member portal** link no longer appears in the web browser displaying the Parts Unlimited website, since the **MemberPortal** flag is, at this point, turned off .
185
185
186
186
> **Note**: This implements the feature flag control using LaunchDarkly. You could now manually enable the toggle from the LaunchDarkly portal manually. However, in this lab, we will configure it via Azure DevOps Release pipeline using the LaunchDarkly extension. To include feature flags as part of the release process, we will associate this change with an Azure DevOps work item.
187
187
188
188
1. Close the web browser window displaying the web application interface.
189
189
1. In the Visual Studio window, if needed, click the top level **View** menu and, in the dropdown menu, click **Team Explorer**.
190
-
1. In the **Team Explorer** pane, on the **Home** page, click **Work Items**.
190
+
1. In the **Team Explorer** pane, on the **Home** page, click **Work Items**. Select the link to view new hub if prompted.
191
191
1. In the **Team Explorer** pane, on the **Work Items** page, note the single work item associated with this branch, including the work item ID.
192
192
1. Double-click the entry representing the work item. This will automatically open another web browser tab, displaying the work item in the Azure DevOps portal.
193
193
1. On the work item pane, verify that work item is assigned to you.
194
-
1. Switch back to the Visual Studio window, navigate to the **Git Changes** pane, in the **Enter a message** textbox, type **Integated LaunchDarkly #<work\_item\_ID>**, where **<work\_item\_ID>** represents the ID you noted earlier, click the down-pointing arrow head next to the **Commit All** button, and, in the dropdown list, click **Commit All and Push**.
194
+
1. Switch back to the Visual Studio window, navigate to the **Git Changes** pane, in the **Enter a message** textbox, type **Integated LaunchDarkly #<work\_item\_ID>**, where **<work\_item\_ID>** represents the ID you noted earlier, click the down-pointing arrow head next to the **Commit All** button, and, in the dropdown list, click **Commit All and Push**. If the **Commit All** is greyed out you can select the up arrow to perform the push.
195
195
196
196
#### Task 3: Automatically rollout LaunchDarkly feature flags during release
197
197
@@ -206,7 +206,7 @@ In this task, you will configure automatic roll out of the LaunchDarkly feature
206
206
> **Note**: Make sure you copy the token. You will not be able to retrieve it once you leave the current page.
207
207
208
208
1. Switch back to the browser window displaying the Azure DevOps portal and, on the **LaunchDarkly** project pane, click **Project settings**.
209
-
1. On the **Project details** pane, in the **Pipelines** section, click **Service connections** and then click **New service connection**.
209
+
1. On the **Project details** pane, in the **Pipelines** section, click **Service connections** and then click **Create service connection**.
210
210
1. On the **New service connection** pane, click **LaunchDarkly** and then click **Next**.
211
211
1. On the **New LaunchDarkly service connection** pane, in the **Access token** text box, paste the access token you retrieved earlier in this task, in the **Service connection name** text box, type **az-400 m12l01 LaunchDarkly**, and click **Save**.
212
212
1. In the Azure DevOps portal, in the vertical menu on the left side, click **Boards** and, on the **Work items** pane, click the work item you assigned to yourself in the previous task.
@@ -247,7 +247,7 @@ In this task, you will configure automatic roll out of the LaunchDarkly feature
247
247
> **Note**: This completes configuration of the release pipeline.
248
248
249
249
1. In the Azure DevOps portal, in the vertical menu bar on the left side, in the **Pipelines** section, select **Pipelines**.
250
-
1. On the **Pipelines** pane, click the entry representing the **LaunchDarkly-CI** build pipeline, on the **LaunchDarkly-CI** pane, click **Run pipeline*, and, on the **Run pipeline** pane, click **Run**.
250
+
1. On the **Pipelines** pane, click the entry representing the **LaunchDarkly-CI** build pipeline, on the **LaunchDarkly-CI** pane, click **Run pipeline**, and, on the **Run pipeline** pane, click **Run**.
251
251
252
252
> **Note**: This CI pipeline compiles .Net Core project. Once the build completes successfully a release would be triggered to deploy app and rollout feature flag in LaunchDarkly.
0 commit comments