Reputation: 4981
I use Azure App Service Settings task to update or add AppService settings. However now I need to delete a key and can't figure out how to do it.. The problem is there might remain keys that have been set during some testing period.
Can it be done with this task or is there another task? I don't want to do it in the portal (in fact I don't have access, I only have set up the service principal in the pipeline, so I need to do it in the pipeline).
Upvotes: 0
Views: 1163
Reputation: 8298
According to the doc, I try to add two keys, then delete them via Azure CLI task, it works. We could add the task Azure CLI
in the pipeline definition to delete appsettings, like:
az webapp config appsettings delete --name {App Service name} --resource-group {Resource group name} --setting-names {key names}
Upvotes: 2