Azure Secret Web.config使用Github部署

时间:2015-04-24 12:50:11

标签: .net azure connection-string asp.net-identity

我正在使用ElCamino's Azure Identity Storage作为Azure Web App托管的网站。

对于部署,我已经让Azure观看了Github存储库。存储库是公开的。

我的问题是我想在Azure中存储Azure存储的连接字符串/密钥,并在部署时将其插入到Web.config中。 ElCamino在其自己的配置部分中使用Web.config元素elcaminoIdentityConfiguration。我已经在web应用程序的配置下看到了连接字符串和appSettings选项,但是当从公共Github存储库部署时,我无法弄清楚如何安全地存储任意web.config转换。

1 个答案:

答案 0 :(得分:0)

不幸的是,此刻无法完成。 Kudu,构建&的应用程序并且部署不会应用web.config转换,因此不允许您拥有自定义配置部分。

管理机密的唯一方法是使用AppSettings - https://github.com/projectkudu/kudu/wiki/Managing-settings-and-secrets