简体   繁体   English

从Visual Studio将Azure函数发布到Azure不会生成绑定

[英]Publishing a azure function from Visual Studio to Azure does not generate out bindings

I am new to Azure Functions and trying to create a sample function to send/insert a message into Queue & Table storage. 我是Azure函数的新手,并试图创建一个示例函数以将消息发送/插入到Queue&Table存储中。

I am using Visual Studio 20117 15.3.5 Professional edition (currently I am on trail version) 我正在使用Visual Studio 20117 15.3.5专业版(当前使用的是试用版)

I am able to create a function and working fine in local, the issue is when I publish the function from Visual Studio to Azure its not copying/function.json is missing out bindings 我能够创建一个函数并在本地正常工作,问题是当我将函数从Visual Studio发布到Azure时,它没有复制/ function.json丢失了绑定

see bellow screen shots 看下面的屏幕截图

Visual Studio Code: Visual Studio代码: Visual Studio程式码

After Publish to Azure, Function.json file: 发布到Azure后,Function.json文件: 发布到Azure Function.json文件之后

When publishing from VS, The output bindings are captured in the compiled binary (based on the attributes you see in your code), and have no need to exist in function.json. 从VS发布时,输出绑定将捕获到已编译的二进制文件中(基于您在代码中看到的属性),并且不需要存在于function.json中。 Only the triggers show up there, as they are needed to make the triggering infrastructure work. 只有触发器才会显示在此处,因为它们需要使触发器基础结构正常工作。

Generally, you should ignore this file when dealing with VS deployments. 通常,在处理VS部署时,应忽略此文件。 Things will work correctly and you should view this file as an implementation detail. 一切正常,您应该将此文件作为实现的详细信息进行查看。

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

相关问题 Visual Studio Azure函数发布function.json - Visual Studio Azure Function Publishing function.json 如何从Visual Studio 2017预览版2指定Azure功能的输出绑定? - How to specify output bindings of Azure Function from Visual studio 2017 preview 2? 从 Visual Studio 发布代码时如何将文件上传到 Azure 函数? - How do I upload file to Azure function while publishing the code from Visual Studio? 天蓝色的聊天机器人无法正常工作。 从Visual Studio发布之后(2017年) - azure chatbot not working. after publishing from visual studio(2017) 发布到Azure时,Visual Studio崩溃 - Visual Studio crashes when publishing to Azure 将Azure功能从门户导入Visual Studio - Import Azure Function from portal into Visual Studio 从Visual Studio 2015在Azure中发布应用不会加载.CSS - Publishing app in Azure from Visual Studio 2015 doesn't load .CSS 从Visual Studio 2015发布时Azure工作者角色部署问题 - Azure worker role deployment issue while publishing from Visual studio 2015 Docker 容器在 Visual Studio 中运行,但在命令行中不执行任何操作 - Azure Function in Docker Container runs in Visual Studio, but does nothing from command line 无法从Visual Studio 2017调试和发布Azure Function - Unable to debug and publish Azure Function from Visual Studio 2017
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM