新部署的 azure 函数返回 404 Not Found 错误

kif*_*lay 18 azure azure-devops azure-functions azure-function-app

嘿,我已经使用 Azure dev ops CI/CD 部署了新的 azure 功能。函数应用程序已成功部署,当我转到主 URL 时,它表示您的函数应用程序正在运行。我尝试使用 azure 门户测试端点(“/save”),输出为 404 Not find。当我使用 POST man 时也得到相同的结果。任何帮助,将不胜感激?

在此输入图像描述

 2020-11-21T11:30:45.769 [Error] The following 2 functions are in error:
 Get: The function type name 'DocumentContextFunction.Functions.GetDocument' 
 is invalid.
 Save: The function type name 
 'DocumentContextFunction.Functions.SaveDocument' is invalid.
Run Code Online (Sandbox Code Playgroud)

kif*_*lay 9

我已通过将“FUNCTIONS_EXTENSION_VERSION”的值从 1 更新为 3 来修复此问题。由于某种原因,每次我使用 Azure CI/CD 进行部署时,其值都设置为 1,因此我必须手动将其更改为 3。