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
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/integrate-ci-cd-pipeline.md
+12-20Lines changed: 12 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,35 +1,29 @@
1
1
---
2
-
title: "Tutorial: Integrate with a continuous integration and delivery pipeline"
3
-
titleSuffix: Azure App Configuration
4
-
description: In this tutorial, you learn how to generate a configuration file by using data in Azure App Configuration during continuous integration and delivery
2
+
title: Integrate Azure App Configuration using a continuous integration and delivery pipeline
3
+
description: Learn to implement continuous integration and delivery using Azure App Configuration
5
4
services: azure-app-configuration
6
-
documentationcenter: ''
7
5
author: lisaguthrie
8
-
manager: balans
9
-
editor: ''
10
-
11
-
ms.assetid:
12
6
ms.service: azure-app-configuration
13
7
ms.topic: tutorial
14
-
ms.date: 02/24/2019
8
+
ms.date: 01/30/2020
15
9
ms.author: lcozzens
16
-
ms.custom: mvc
17
10
18
-
#Customer intent: I want to use Azure App Configuration data in my CI/CD pipeline.
11
+
# Customer intent: I want to use Azure App Configuration data in my CI/CD pipeline.
12
+
19
13
---
20
14
# Integrate with a CI/CD pipeline
21
15
22
-
This article describes various ways of using data from Azure App Configuration in a continuous integration and continuous deployment system.
16
+
This article explains how to use data from Azure App Configuration in a continuous integration and continuous deployment system.
23
17
24
18
## Use App Configuration in your Azure DevOps Pipeline
25
19
26
-
If you have an Azure DevOps Pipeline, you can fetch key-values from App Configuration and set them as task variables. The [Azure App Configuration DevOps extension](https://go.microsoft.com/fwlink/?linkid=2091063) is an add-on module that provides this functionality. Simply follow its instructions to use the extension in a build or release task sequence.
20
+
If you have an Azure DevOps Pipeline, you can fetch key-values from App Configuration and set them as task variables. The [Azure App Configuration DevOps extension](https://go.microsoft.com/fwlink/?linkid=2091063) is an add-on module that provides this functionality. Follow its instructions to use the extension in a build or release task sequence.
27
21
28
22
## Deploy App Configuration data with your application
29
23
30
-
Your application may fail to run if it depends on Azure App Configuration and cannot reach it. You can enhance the resiliency of your application to deal with such an event, however unlikely it is to happen. To do so, package the current configuration data into a file that's deployed with the application and loaded locally during its startup. This approach guarantees that your application has default setting values at least. These values are overwritten by any newer changes in an App Configuration store when it's available.
24
+
Your application may fail to run if it depends on Azure App Configuration and cannot reach it. Enhance the resiliency of your application by packaging configuration data into a file that's deployed with the application and loaded locally during application startup. This approach guarantees that your application has default setting values on startup. These values are overwritten by any newer changes in an App Configuration store when it's available.
31
25
32
-
Using the [Export](./howto-import-export-data.md#export-data) function of Azure App Configuration, you can automate the process of retrieving current configuration data as a single file. Then embed this file in a build or deployment step in your continuous integration and continuous deployment (CI/CD) pipeline.
26
+
Using the [Export](./howto-import-export-data.md#export-data) function of Azure App Configuration, you can automate the process of retrieving current configuration data as a single file. You can then embed this file in a build or deployment step in your continuous integration and continuous deployment (CI/CD) pipeline.
33
27
34
28
The following example shows how to include App Configuration data as a build step for the web app introduced in the quickstarts. Before you continue, finish [Create an ASP.NET Core app with App Configuration](./quickstart-aspnet-core-app.md) first.
35
29
@@ -51,10 +45,7 @@ To do a cloud build, with Azure DevOps for example, make sure the [Azure CLI](ht
Add the *ConnectionString* associated with your App Configuration store as an environment variable.
56
-
57
-
2. Open *Program.cs*, and update the `CreateWebHostBuilder` method to use the exported JSON file by calling the `config.AddJsonFile()` method.
48
+
1. Open *Program.cs*, and update the `CreateWebHostBuilder` method to use the exported JSON file by calling the `config.AddJsonFile()` method. Add the `System.Reflection` namespace as well.
58
49
59
50
```csharp
60
51
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
@@ -72,7 +63,8 @@ To do a cloud build, with Azure DevOps for example, make sure the [Azure CLI](ht
72
63
73
64
### Build and run the app locally
74
65
75
-
1. Set an environment variable named **ConnectionString**, and set it to the access key to your App Configuration store. If you use the Windows command prompt, run the following command and restart the command prompt to allow the change to take effect:
66
+
1. Set an environment variable named **ConnectionString**, and set it to the access key to your App Configuration store.
67
+
If you use the Windows command prompt, run the following command and restart the command prompt to allow the change to take effect:
0 commit comments