如何在Azure数据工厂管道中集成WebJob [英] How to integrate a WebJob within an Azure Data Factory Pipeline

查看:65
本文介绍了如何在Azure数据工厂管道中集成WebJob的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将WebJob集成到ADF管道中. Webjob是一个非常简单的控制台应用程序:

I'am trying to integrate a WebJob inside an ADF pipeline. The webjob is a very simple console application:

namespace WebJob4
{
    class ReturnTest
    {
        static double CalculateArea(int r)
        {
            double area = r * r * Math.PI;
            return area;
        }

        static void Main()
        {
            int radius = 5;
            double result = CalculateArea(radius);
            Console.WriteLine("The area is {0:0.00}", result);       
        }
    }
}

我们如何通过ADF管道调用此webjob并将响应代码(成功的情况下为HTTP 200)存储在azure blob存储中?

How do we call this webjob through an ADF pipeline and store the response code (HTTP 200 in case of Success) in azure blob storage?

推荐答案

2018年12月更新:

如果您正在考虑使用azure函数执行此操作,则azure数据工厂现在为您提供azure函数步骤!基本原理与您必须使用HTTP触发器公开azure函数的原理相同.但这提供了更好的安全性,因为您可以使用ACL指定数据工厂实例对azure函数的访问权限

Dec 2018 Update :

If you are thinking of doing this using azure function, azure data factory NOW provides you with an azure function step! the underlying principle is the same as you will have to expose the azure function with a HTTP trigger. however this provides better security since you can specify your data factory instance access to the azure function using ACL

参考资料:


原始答案

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