如何通过 Azure 数据工厂访问带有私有端点的 Azure Function?
How to access Azure Function with private endpoint with Azure Data Factory?
我有启用了专用终结点和 VNet 集成的 Azure Functions。
我有带 Azure 函数的 Azure 数据工厂 Activity。
触发管道时出现错误:
Call to provided Azure function 'myfunction' failed with status-'Forbidden' and message - '<!DOCTYPE html> <html> <head> <title>Web App - Unavailable
显然 ADF 无法访问 Function。如何解决?
您的 azure 函数阻止了 ADF 的外部访问,请确保您使用以下步骤:
- 如果您正在使用 web activity 的 azure 函数,它不支持在私有虚拟网络中托管的 URL。
- 将 azure function-app 迁移到 Isolated(在 ASE 内)
App-Service-Plan 可以解决您的问题。
- Azure 函数 Activity 支持 路由 。你的蔚蓝
函数具有端点
https://functionAPP.azurewebsites.net/api/< functionName>/< value>?code=< secret>
,然后在 Azure 函数 Activity 中使用的 functionName 是 < functionName>/< value>
。您可以参数化此函数以在运行时提供所需的函数名称。
备注
The functionName for Durable Functions should be taken from the route property of the function's binding in its JSON definition, to include its routing information. Simply using the functionName without the route detail included will result in a failure because the Function App cannot be found.
确保您的 ADF 已设置为专用端点。如果不参考here
我有启用了专用终结点和 VNet 集成的 Azure Functions。
我有带 Azure 函数的 Azure 数据工厂 Activity。
触发管道时出现错误:
Call to provided Azure function 'myfunction' failed with status-'Forbidden' and message - '<!DOCTYPE html> <html> <head> <title>Web App - Unavailable
显然 ADF 无法访问 Function。如何解决?
您的 azure 函数阻止了 ADF 的外部访问,请确保您使用以下步骤:
- 如果您正在使用 web activity 的 azure 函数,它不支持在私有虚拟网络中托管的 URL。
- 将 azure function-app 迁移到 Isolated(在 ASE 内) App-Service-Plan 可以解决您的问题。
- Azure 函数 Activity 支持 路由 。你的蔚蓝
函数具有端点
https://functionAPP.azurewebsites.net/api/< functionName>/< value>?code=< secret>
,然后在 Azure 函数 Activity 中使用的 functionName 是< functionName>/< value>
。您可以参数化此函数以在运行时提供所需的函数名称。
备注
The functionName for Durable Functions should be taken from the route property of the function's binding in its JSON definition, to include its routing information. Simply using the functionName without the route detail included will result in a failure because the Function App cannot be found.
确保您的 ADF 已设置为专用端点。如果不参考here