Azure 函数本地开发
Azure functions local development
有没有一种方法可以让我在本地 azure 运行时配置开发的 azure 函数 运行 来与 Azure DB sql 服务器通信。在 azure 门户中,我可以使用 App Settings 来配置和使用 System.Configuration 从 App Settings 获取设置。当我在 VS 2017 中创建一个新的函数应用程序项目时,我找不到任何 App.config 或 Web.config 文件。我可以对连接字符串进行硬编码,但我想知道是否有更好的方法来做到这一点。
谢谢
这是 运行 在 Azure 中时 the local.settings.json
file is for. It is used to store the settings you would store at the Azure Functions Settings 的水平。
有没有一种方法可以让我在本地 azure 运行时配置开发的 azure 函数 运行 来与 Azure DB sql 服务器通信。在 azure 门户中,我可以使用 App Settings 来配置和使用 System.Configuration 从 App Settings 获取设置。当我在 VS 2017 中创建一个新的函数应用程序项目时,我找不到任何 App.config 或 Web.config 文件。我可以对连接字符串进行硬编码,但我想知道是否有更好的方法来做到这一点。
谢谢
这是 运行 在 Azure 中时 the local.settings.json
file is for. It is used to store the settings you would store at the Azure Functions Settings 的水平。