如何在Azure函数中调用另一个函数 [英] How to call another function with in an Azure function

查看:121
本文介绍了如何在Azure函数中调用另一个函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了以下3个函数

  1. 在数据库中创建用户
  2. 从数据库获取用户
  3. 处理用户

在[3]函数中,我将调用[2]函数以使用户使用Azure函数url,如下所示:-

In [3] function, I will call [2] function to get users using Azure function url as below:-

https://hdidownload.azurewebsites.net/api/getusers

是否还有其他方法可以在没有上述完整路径的情况下在另一个Azure函数中调用Azure函数?

Is there any other way to call Azure function with in another Azure function without full path as above?

推荐答案

Function Apps中没有内置函数可以在不实际进行HTTP调用的情况下从其他函数中调用一个HTTP函数.

There's nothing built-in in Function Apps to call one HTTP function from other functions without actually making the HTTP call.

对于简单的用例,我只会坚持使用完整的URL进行呼叫.

For simple use cases I would just stick to calling by full URL.

有关更高级的工作流程,请查看耐用功能,尤其是

For more advanced workflows, have a look at Durable Functions, paticularly Function Chaining.

这篇关于如何在Azure函数中调用另一个函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆