0

I have a .Net Framework 4.6.2 Web Application which deployed in Azure App Service. In Web.config file, it has some passwords in <appSettings> element, and some connection strings in <connectionStrings> element. I want to keep both in Azure Key Vault secrets, and retrieve them from Azure DevOps with service connection and push the secrets' value to Application settings and Connection strings in App Service. enter image description here

I'm able to do this for Application settings in Deploy Azure App Service > Application and Configuration Settings > App settings, but not for Connection strings. How to set App Service Connection strings from Azure DevOps? Thanks. enter image description here

1 Answer 1

3

Use "Azure App Service Settings" to set the connection string. Hope this helps!

Azure App Service Settings

You can refer to this official issue thread Let me know if it worked.

Sign up to request clarification or add additional context in comments.

2 Comments

At first, I got error message SyntaxError:***Unexpected***token***p***in***JSON***at***position***1, then I realised that they use new JSON format for these Connection Strings and App Settings. I change them to JSON, bingo! It works. I love this new PREVIEW function. Thanks.
Glad to help :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.