部署时由Azure HTTP触发的功能404

时间:2019-06-13 02:45:57

标签: azure-functions

我有Mac的Visual Studio。我遵循了this教程。我将身份验证级别设置为“功能”。我在本地进行了测试,效果很好。我使用Visual Studio for Mac发布了它,并启动了我的功能,我看到了一个漂亮的蓝页。然后,我转到API网址,它返回404。这是网址:

  

https://idb-dialog-flow.azurewebsites.net/api/idb_dialog_flow?code=(my_code)

我也关闭了AlwaysOn模式,尽管在触摸此设置之前遇到了这个问题。

为什么这样做,我该如何解决?

编辑

使用Kudo控制台和PowerShell,我看到站点已部署,但只看到一个function.json文件。是否应该有更多文件?像我的.cs函数文件一样?

PS D:\home\site\wwwroot\idb_dialog_flow> ls
ls


    Directory: D:\home\site\wwwroot\idb_dialog_flow


Mode                LastWriteTime         Length Name                          
----                -------------         ------ ----                          
-a----        6/13/2019   4:53 AM            389 function.json                 


PS D:\home\site\wwwroot\idb_dialog_flow>  

0 个答案:

没有答案