gpt4 book ai didi

azure - 如果与 web.config 分开,Get-AzWebApp 能否获取连接字符串信息

转载 作者:行者123 更新时间:2023-12-03 06:55:56 26 4
gpt4 key购买 nike

我尝试使用 Get-AzWebApp PowerShell 命令获取 azure 应用服务列表,然后读取每个服务的配置/连接字符串。如果每个应用程序服务的 web.config 将连接字符串存储在单独的文件中,那么这仍然有效吗?在 web.config 中我们有

<connectionStrings configSource="App_Config\ConnectionStrings.config" />

我们期望它仍然有效吗?

最佳答案

Does this still work if the web.config of each app service has the connection strings stored in a separate file, so e.g. in web.config we have<connectionStrings configSource="App_Config\ConnectionStrings.config" / >Would we expect this to work still?

目前还不可能。在应用服务中无法从文件中获取连接字符串。

PowerShell 中,我们无法使用文件编辑或添加批量连接字符串和应用设置。

我们可以添加连接字符串/应用程序设置,它将像键值一样添加。因此,无论我们在应用程序设置中添加什么,我们都可以将其作为字符串值获取。

关于azure - 如果与 web.config 分开,Get-AzWebApp 能否获取连接字符串信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72958354/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com