从Azure DevOps设置应用程序服务连接字符串 [英] Set App Service Connection strings from Azure DevOps
问题描述
我有一个部署在 Azure App Service
中的 .Net Framework 4.6.2
Web应用程序.在 Web.config
文件中,它在< appSettings>
元素中具有一些密码,在< connectionStrings>
元素中具有一些连接字符串.我想将两者都保存在 Azure Key Vault
机密中,并通过服务连接从 Azure DevOps
中检索它们,并将机密的值推送到 Application settings
和 App Service
中的连接字符串
.
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
.
我能够针对 Deploy Azure App Service>中的
,但不适用于应用程序设置
执行此操作.应用程序和配置设置>应用设置连接字符串
.如何从Azure DevOps设置应用程序服务连接字符串?谢谢.
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.
推荐答案
使用"Azure App服务设置"来设置连接字符串.希望这会有所帮助!
Use "Azure App Service Settings" to set the connection string. Hope this helps!
您可以参考此官方问题主题让我知道它是否有效.
You can refer to this official issue thread Let me know if it worked.
这篇关于从Azure DevOps设置应用程序服务连接字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!