简体   繁体   English

Azure负责本地开发

[英]Azure functions local development

Is there a way that I can configure an azure function which is developed and running on local azure runtime to talk Azure DB sql sever. 有没有一种方法可以配置在本地azure运行时上开发并运行的azure函数,以使用Azure DB sql服务器。 In the azure portal I could use App Settings to configure and use System.Configuration to get setting from the App Settings. 在azure门户中,我可以使用“应用程序设置”来配置和使用System.Configuration来从“应用程序设置”中获取设置。 I could not find any App.config or Web.config files when I create a new function App Project in VS 2017. I could hard code the connection string but I was wondering is there a better way to do this. 在VS 2017中创建新功能App Project时找不到任何App.config或Web.config文件。我可以对连接字符串进行硬编码,但我想知道是否有更好的方法可以做到这一点。

Thanks 谢谢

This is what the local.settings.json file is for. 这就是local.settings.json文件的用途。 It is used to store the settings you would store at the Azure Functions Settings level when running out in Azure. 它用于存储在Azure中用尽时要存储在Azure Functions设置级别的设置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM