Skip to content

Commit 157c470

Browse files
authored
Merge pull request #102896 from jpconnock/app-config-cd-ci
App config cd ci freshness
2 parents 96afce0 + f8a3c86 commit 157c470

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

articles/azure-app-configuration/integrate-ci-cd-pipeline.md

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,29 @@
11
---
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
54
services: azure-app-configuration
6-
documentationcenter: ''
75
author: lisaguthrie
8-
manager: balans
9-
editor: ''
10-
11-
ms.assetid:
126
ms.service: azure-app-configuration
137
ms.topic: tutorial
14-
ms.date: 02/24/2019
8+
ms.date: 01/30/2020
159
ms.author: lcozzens
16-
ms.custom: mvc
1710

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+
1913
---
2014
# Integrate with a CI/CD pipeline
2115

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.
2317

2418
## Use App Configuration in your Azure DevOps Pipeline
2519

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.
2721

2822
## Deploy App Configuration data with your application
2923

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.
3125

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.
3327

3428
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.
3529

@@ -51,10 +45,7 @@ To do a cloud build, with Azure DevOps for example, make sure the [Azure CLI](ht
5145
<Exec WorkingDirectory="$(MSBuildProjectDirectory)" Condition="$(ConnectionString) != ''" Command="az appconfig kv export -d file --path $(OutDir)\azureappconfig.json --format json --separator : --connection-string $(ConnectionString)" />
5246
</Target>
5347
```
54-
55-
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.
5849

5950
```csharp
6051
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
7263

7364
### Build and run the app locally
7465

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:
7668

7769
setx ConnectionString "connection-string-of-your-app-configuration-store"
7870

0 commit comments

Comments
 (0)