Stuart.Sklinar
Stuart.Sklinar

Reputation: 3761

Can Azure Devops pipelines update Azure App Configuration

Had a quick google, and there appears to be nothing out there.

Can an Azure Pipeline update Azure App Configuration? Or would it make sense to be builds and deployment/run-time config away from each other

Upvotes: 1

Views: 2387

Answers (3)

Jon
Jon

Reputation: 118

The Azure App Configuration Push task works pretty well now :

https://learn.microsoft.com/en-us/azure/azure-app-configuration/push-kv-devops-pipeline

Upvotes: 2

LoLance
LoLance

Reputation: 28116

Can an Azure Pipeline update Azure App Configuration?

Apart from the az appconfig kv set in rickvdbosch's answer, you can also consider using Azure Resource Manager which can also be used to manage app settings. See similar hint here.

You can use Override template parameters option in Azure Resource Group Deployment task to update the app configurations in build/release pipeline.

enter image description here

Upvotes: 2

rickvdbosch
rickvdbosch

Reputation: 15571

Probably the simplest solution to get this working is by using Azure CLI which you can integrate into your pipelines using the Azure CLI task.

To update, use the az appconfig kv set command.

Set a key using an App Configuration name and label
az appconfig kv set -n {name} --key {key1} --label {label} --value {value1} --content-type {text} --tags {tag1,tag2}

Upvotes: 2

Related Questions