Choose an existing release pipeline. If you don’t have one, click + New to create a new one.
Click the Edit button on the top right corner to edit the release pipeline.
Choose the stage to add the task, it will be present for all Jobs that under the stage.
Click + for that Job, then find the Azure App Configuration task under the Deploy tab, and click the Add button to add this task to the Job.
Configure the necessary parameters for the task to pull the wanted key-values from Azure App Configuration instance.
An explanation of the parameters is available in the Parameters section below, as well as in tooltips next to the parameter names.
Save and queue a release. The release logs will include the total number of key-values that the task pulled from Azure App Configuration.
Parameters of the task:
Azure Subscription: Select the service endpoint for the Azure Subscription where the Azure App Configuration instance is created. To configure a new service endpoint, select the Azure subscription from the list and click Authorize. If your subscription is not listed or if you want to use an existing Service Principal, you can setup an Azure service connection using the Manage link.
App Configuration Name: Provide the name of the App Configuration from which the key-values need to be pulled.
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. Reference for key-values query.
Label: Specifies which label should be used when selecting key-values from App Configuration. If no label is provided then key-values with the null label will be retrieved. The following characters are not allowed: ,*
Use key-values in subsequent tasks
The key-values that are fetched from Azure App Configuration are set as environment variables. The key of the environment variable is the key of the key-value that is retrieved from Azure App Configuration.
For example, if a subsequent task runs a powershell script, it could consume a key-value with the key 'myBuildSetting' like this: