Skip to content

Commit 0b0d162

Browse files
authored
Merge pull request #289242 from MaryanneNjeri/user/maryanne/update_push_pull_task_docs
[App Configuration] Update App Configuration pipeline tasks docs to reference the new built in tasks
2 parents 76044b1 + 4ff3498 commit 0b0d162

16 files changed

+149
-88
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"redirections": [
3+
{
4+
"source_path_from_root": "/articles/azure-app-configuration/push-kv-devops-pipeline.md",
5+
"redirect_url": "/azure/azure-app-configuration/azure-pipeline-import-task",
6+
"redirect_document_id": true
7+
},
8+
{
9+
"source_path_from_root": "/articles/azure-app-configuration/pull-key-value-devops-pipeline.md",
10+
"redirect_url": "/azure/azure-app-configuration/azure-pipeline-export-task",
11+
"redirect_document_id": true
12+
},
13+
{
14+
"source_path_from_root": "/articles/azure-app-configuration/create-snapshot-devops-pipeline.md",
15+
"redirect_url": "/azure/azure-app-configuration/azure-pipeline-snapshot-task",
16+
"redirect_document_id": true
17+
}
18+
]
19+
}

articles/azure-app-configuration/TOC.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@
114114
href: reload-key-vault-secrets-dotnet.md
115115
- name: Build, deploy, and CI/CD
116116
items:
117-
- name: Push using Azure Pipelines
118-
href: push-kv-devops-pipeline.md
119-
- name: Pull using Azure Pipelines
120-
href: pull-key-value-devops-pipeline.md
117+
- name: Import using Azure Pipelines
118+
href: azure-pipeline-import-task.md
119+
- name: Export using Azure Pipelines
120+
href: azure-pipeline-export-task.md
121121
- name: Create snapshots using Azure Pipelines
122-
href: create-snapshot-devops-pipeline.md
122+
href: azure-pipeline-snapshot-task.md
123123
- name: Push using GitHub Actions
124124
href: push-kv-github-action.md
125125
- name: Build project using exported configuration
Lines changed: 55 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
---
2-
title: Pull settings from App Configuration with Azure Pipelines
3-
description: Learn how to use Azure Pipelines to pull key-values from an App Configuration Store
2+
title: Export settings from App Configuration with Azure Pipelines
3+
description: Learn how to use Azure Pipelines to export key-values from an App Configuration Store
44
services: azure-app-configuration
55
author: maud-lv
66
ms.service: azure-app-configuration
77
ms.topic: how-to
8-
ms.date: 10/03/2023
8+
ms.date: 10/29/2024
99
ms.author: malev
1010
---
1111

12-
# Pull settings from App Configuration with Azure Pipelines
12+
# Export settings from App Configuration with Azure Pipelines
1313

14-
The [Azure App Configuration](https://marketplace.visualstudio.com/items?itemName=AzureAppConfiguration.azure-app-configuration-task) task pulls key-values from your App Configuration store and sets them as Azure pipeline variables, which can be consumed by subsequent tasks. This task complements the [Azure App Configuration Push](https://marketplace.visualstudio.com/items?itemName=AzureAppConfiguration.azure-app-configuration-task-push) task that pushes key-values from a configuration file into your App Configuration store. For more information, see [Push settings to App Configuration with Azure Pipelines](push-kv-devops-pipeline.md).
14+
The Azure App Configuration Export task exports key-values from your App Configuration store and sets them as Azure pipeline variables, which subsequent tasks can consume. This task complements the Azure App Configuration Import task that imports key-values from a configuration file into your App Configuration store. For more information, see [Import settings to App Configuration with Azure Pipelines](azure-pipeline-import-task.md).
1515

1616
## Prerequisites
1717

1818
- Azure subscription - [create one for free](https://azure.microsoft.com/free/)
1919
- App Configuration store - [create one for free](./quickstart-azure-app-configuration-create.md#create-an-app-configuration-store)
2020
- Azure DevOps project - [create one for free](https://go.microsoft.com/fwlink/?LinkId=2014881)
21-
- Azure App Configuration task - download for free from the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=AzureAppConfiguration.azure-app-configuration-task#:~:text=Navigate%20to%20the%20Tasks%20tab,the%20Azure%20App%20Configuration%20instance.).
22-
- [Azure Pipelines agent version 2.206.1](https://github.com/microsoft/azure-pipelines-agent/releases/tag/v2.206.1) or later and [Node version 16](https://nodejs.org/en/blog/release/v16.16.0/) or later for running the task on self-hosted agents.
21+
- [Azure Pipelines agent version 2.144.0](https://github.com/microsoft/azure-pipelines-agent/releases/tag/v2.144.0) or later and [Node version 16](https://nodejs.org/en/blog/release/v16.16.0/) or later for running the task on self-hosted agents.
2322

2423
## Create a service connection
2524

@@ -43,53 +42,60 @@ Assign the proper App Configuration role assignments to the credentials being us
4342

4443
## Use in builds
4544

46-
This section will cover how to use the Azure App Configuration task in an Azure DevOps build pipeline.
45+
This section covers how to use the Azure App Configuration Export task in an Azure DevOps build pipeline.
4746

4847
1. Navigate to the build pipeline page by clicking **Pipelines** > **Pipelines**. For build pipeline documentation, see [Create your first pipeline](/azure/devops/pipelines/create-first-pipeline?tabs=net%2Ctfs-2018-2%2Cbrowser).
4948
- If you're creating a new build pipeline, on the last step of the process, on the **Review** tab, select **Show assistant** on the right side of the pipeline.
50-
![Screenshot shows the Show assistant button for a new pipeline.](./media/new-pipeline-show-assistant.png)
49+
> [!div class="mx-imgBorder"]
50+
> ![Screenshot shows the Show assistant button for a new pipeline.](./media/new-pipeline-show-assistant.png)
5151
- If you're using an existing build pipeline, click the **Edit** button at the top-right.
52-
![Screenshot shows the Edit button for an existing pipeline.](./media/existing-pipeline-show-assistant.png)
53-
1. Search for the **Azure App Configuration** Task.
54-
![Screenshot shows the Add Task dialog with Azure App Configuration in the search box.](./media/add-azure-app-configuration-task.png)
55-
1. Configure the necessary parameters for the task to pull the key-values from the App Configuration store. Descriptions of the parameters are available in the **Parameters** section below and in tooltips next to each parameter.
52+
> [!div class="mx-imgBorder"]
53+
> ![Screenshot shows the Edit button for an existing pipeline.](./media/existing-pipeline-show-assistant.png)
54+
1. Search for the **Azure App Configuration Export** Task.
55+
> [!div class="mx-imgBorder"]
56+
> ![Screenshot shows the Add Task dialog with Azure App Configuration Export in the search box.](./media/add-azure-app-configuration-export-task.png)
57+
1. To export the key-values from the App Configuration store, configure the necessary parameters for the task. Descriptions of the parameters are available in the **Parameters** section and in tooltips next to each parameter.
5658
- Set the **Azure subscription** parameter to the name of the service connection you created in a previous step.
5759
- Set the **App Configuration Endpoint** to the endpoint of your App Configuration store.
5860
- Leave the default values for the remaining parameters.
59-
![Screenshot shows the app configuration task parameters.](./media/azure-app-configuration-parameters.png)
60-
1. Save and queue a build. The build log will display any failures that occurred during the execution of the task.
61+
> [!div class="mx-imgBorder"]
62+
> ![Screenshot shows the app configuration task parameters.](./media/azure-app-configuration-export-parameters.png)
63+
1. Save and queue a build. The build log displays any failures that occurred during the execution of the task.
6164

6265
## Use in releases
6366

64-
This section will cover how to use the Azure App Configuration task in an Azure DevOps release pipeline.
67+
This section covers how to use the Azure App Configuration Export task in an Azure DevOps release pipeline.
6568

6669
1. Navigate to release pipeline page by selecting **Pipelines** > **Releases**. For release pipeline documentation, see [Release pipelines](/azure/devops/pipelines/release).
6770
1. Choose an existing release pipeline. If you don’t have one, click **New pipeline** to create a new one.
6871
1. Select the **Edit** button in the top-right corner to edit the release pipeline.
69-
1. From the **Tasks** dropdown, choose the **Stage** to which you want to add the task. More information about stages can be found [here](/azure/devops/pipelines/release/environments).
70-
![Screenshot shows the selected stage in the Tasks dropdown.](./media/pipeline-stage-tasks.png)
72+
1. From the **Tasks** dropdown, choose the **Stage** to which you want to add the task. More information about stages can be found in [Add stages, dependencies, & conditions](/azure/devops/pipelines/release/environments).
73+
> [!div class="mx-imgBorder"]
74+
> ![Screenshot shows the selected stage in the Tasks dropdown.](./media/pipeline-stage-tasks.png)
7175
1. Click **+** next to the Job to which you want to add a new task.
72-
![Screenshot shows the plus button next to the job.](./media/add-task-to-job.png)
73-
1. Search for the **Azure App Configuration** Task.
74-
![Screenshot shows the Add Task dialog with Azure App Configuration in the search box.](./media/add-azure-app-configuration-task.png)
75-
1. Configure the necessary parameters within the task to pull your key-values from your App Configuration store. Descriptions of the parameters are available in the **Parameters** section below and in tooltips next to each parameter.
76+
> [!div class="mx-imgBorder"]
77+
> ![Screenshot shows the plus button next to the job.](./media/add-task-to-job.png)
78+
1. Search for the **Azure App Configuration Export** Task.
79+
> [!div class="mx-imgBorder"]
80+
> ![Screenshot shows the Add Task dialog with Azure App Configuration Export in the search box.](./media/add-azure-app-configuration-export-task.png)
81+
1. To export your key-values from your App Configuration store, configure the necessary parameters within the task. Descriptions of the parameters are available in the **Parameters** section and in tooltips next to each parameter.
7682
- Set the **Azure subscription** parameter to the name of the service connection you created in a previous step.
7783
- Set the **App Configuration Endpoint** to the endpoint of your App Configuration store.
7884
- Leave the default values for the remaining parameters.
79-
1. Save and queue a release. The release log will display any failures encountered during the execution of the task.
85+
1. Save and queue a release. The release log displays any failures encountered during the execution of the task.
8086

8187
## Parameters
8288

83-
The following parameters are used by the Azure App Configuration task:
89+
The following parameters are used by the Azure App Configuration Export task:
8490

8591
- **Azure subscription**: A drop-down containing your available Azure service connections. To update and refresh your list of available Azure service connections, press the **Refresh Azure subscription** button to the right of the textbox.
8692
- **App Configuration Endpoint**: A drop-down that loads your available configuration stores endpoints under the selected subscription. To update and refresh your list of available configuration stores endpoints, press the **Refresh App Configuration Endpoint** button to the right of the textbox.
8793
- **Selection Mode**: Specifies how the key-values read from a configuration store are selected. The 'Default' selection mode allows the use of key and label filters. The 'Snapshot' selection mode allows key-values to be selected from a snapshot. Default value is **Default**.
88-
- **Key Filter**: The filter can be used to select what key-values are requested from Azure App Configuration. A value of * will select all key-values. For more information on, see [Query key-values](concept-key-value.md#query-key-values).
89-
- **Label**: Specifies which label should be used when selecting key-values from the App Configuration store. If no label is provided, then key-values with the no label will be retrieved. The following characters are not allowed: , *.
94+
- **Key Filter**: The filter can be used to select what key-values are requested from Azure App Configuration. A value of * selects all key-values. For more information on, see [Query key-values](concept-key-value.md#query-key-values).
95+
- **Label**: Specifies which label should be used when selecting key-values from the App Configuration store. If no label is provided, then key-values with the no label are retrieved. The following characters aren't allowed: , *.
9096
- **Snapshot Name**: Specifies snapshot from which key-values should be retrieved in Azure App Configuration.
91-
- **Trim Key Prefix**: Specifies one or more prefixes that should be trimmed from App Configuration keys before setting them as variables. Multiple prefixes can be separated by a new-line character.
92-
- **Suppress Warning For Overridden Keys**: Default value is unchecked. Specifies whether to show warnings when existing keys are overridden. Enable this option when it is expected that the key-values downloaded from App Configuration have overlapping keys with what exists in pipeline variables.
97+
- **Trim Key Prefix**: Specifies one or more prefixes that should be trimmed from App Configuration keys before setting them as variables. A new-line character can be used to separate multiple prefixes.
98+
- **Suppress Warning For Overridden Keys**: Default value is unchecked. Specifies whether to show warnings when existing keys are overridden. Enable this option when it's expected that the key-values downloaded from App Configuration have overlapping keys with what exists in pipeline variables.
9399

94100
## Use key-values in subsequent tasks
95101

@@ -99,10 +105,10 @@ For example, if a subsequent task runs a PowerShell script, it could consume a k
99105
```powershell
100106
echo "$env:myBuildSetting"
101107
```
102-
And the value will be printed to the console.
108+
And the value is printed to the console.
103109

104110
> [!NOTE]
105-
> Azure Key Vault references within App Configuration will be resolved and set as [secret variables](/azure/devops/pipelines/process/variables#secret-variables). In Azure pipelines, secret variables are masked out from log. They are not passed into tasks as environment variables and must instead be passed as inputs.
111+
> Azure Key Vault references within App Configuration will be resolved and set as [secret variables](/azure/devops/pipelines/process/variables#secret-variables). In Azure pipelines, secret variables are masked out from log. They aren't passed into tasks as environment variables and must instead be passed as inputs.
106112
107113
## Troubleshooting
108114

@@ -112,4 +118,22 @@ If an unexpected error occurs, debug logs can be enabled by setting the pipeline
112118

113119
**How do I compose my configuration from multiple keys and labels?**
114120

115-
There are times when configuration may need to be composed from multiple labels, for example, default and dev. Multiple App Configuration tasks may be used in one pipeline to implement this scenario. The key-values fetched by a task in a later step will supersede any values from previous steps. In the aforementioned example, a task can be used to select key-values with the default label while a second task can select key-values with the dev label. The keys with the dev label will override the same keys with the default label.
121+
There are times when configuration may need to be composed from multiple labels, for example, default and dev. Multiple App Configuration tasks may be used in one pipeline to implement this scenario. The key-values fetched by a task in a later step supersedes any values from previous steps. In the aforementioned example, a task can be used to select key-values with the default label while a second task can select key-values with the dev label. The keys with the dev label override the same keys with the default label.
122+
123+
## Next step
124+
125+
For a complete reference of the parameters or to use this pipeline task in YAML pipelines, refer to the following document.
126+
127+
> [!div class="nextstepaction"]
128+
> [Azure App Configuration Export Task reference](/azure/devops/pipelines/tasks/reference/azure-app-configuration-export-v10)
129+
130+
To learn how to import key-values from a configuration file into your App Configuration store, continue to the following document.
131+
132+
> [!div class="nextstepaction"]
133+
> [Import settings to App Configuration with Azure pipelines](./azure-pipeline-import-task.md)
134+
135+
To learn how to create snapshot in an App Configuration store, continue to the following document.
136+
137+
> [!div class="nextstepaction"]
138+
> [Create snapshots in App Configuration with Azure Pipelines](./azure-pipeline-snapshot-task.md)
139+

0 commit comments

Comments
 (0)