How to read azure web application settings from azure devops pipeline

Sathish Kumar Karikalan 81 Reputation points
2023-06-16T11:00:51.39+00:00

I have provisioned Azure Web App through Terraform, during provisioning, I've added some keys to the application settings of app. Those keys needs to be used by Application team in app deployment and they have their own azure devops pipeline for app deployment.

is there a way to retrieve the azure web app application settings values that we added during provisioning from application team's pipeline for replacing those keys in application-settings.json file. Any suggestion for this requirement, would be greatly appreciated.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
{count} votes

Answer accepted by question author
  1. AirGordon 7,165 Reputation points
    2023-06-16T11:32:58.9033333+00:00

    I'd suggest using the Azure CLI as part of the App teams DevOps pipeline. You can query a Web Apps settings using the Azure CLI with this command;

    az webapp config appsettings list

    output

    You can see how to integrate Azure CLI commands into Azure DevOps Pipeline steps here: https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/azure-cli-v2?view=azure-pipelines

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.