gpt4 book ai didi

python - 从azure数据工厂执行python脚本

转载 作者:太空宇宙 更新时间:2023-11-03 21:08:08 25 4
gpt4 key购买 nike

有人可以帮我从 azure 数据工厂执行 python 函数吗?我已将 python 函数存储在 blob 中,并且我正在尝试触发相同的函数。但是我无法做到这一点。请帮忙。

第二,我可以参数化 ADF 中的 python 函数调用吗?

最佳答案

您可以了解 Azure Function Activity在 ADF 中,它允许您在数据工厂管道中运行 Azure Functions。

你可以将你的 python 函数复制到 Python Azure Function 中.

另外,它想将参数传递给python函数,你可以将它们设置到body属性中。

enter image description here

Azure Function Activity 支持路由。例如,如果您的应用程序使用以下路由 - https://functionAPP.azurewebsites.net/api/functionName/{value}?code=<secret> - 那么函数名称是 functionName/{value} ,您可以对其进行参数化以提供所需的 functionName在运行时。

关于python - 从azure数据工厂执行python脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55263594/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com