如何执行Python脚本位于使用ADF的vm中. [英] How to execute a Python script reside in a vm using ADF.

查看:122
本文介绍了如何执行Python脚本位于使用ADF的vm中.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个Python脚本驻留在Azure VM中.此脚本使用此VM中的几个本地文件.我需要创建一个ADF管道将 执行此python脚本驻留在此本地VM中.由于脚本是放在前提下的,所以我不能使用 ADF的任何群集活动.所以基本上,管道应该连接到VM并触发脚本执行.我可以考虑使用ADF的Custom Activity并从那里触发Powershell命令到本地python脚本的选项.但不是 确定如何连接到本地脚本.对此有任何帮助.

I have a python script resides in an Azure VM.This script uses few local files from this VM. I need to create an ADF  pipeline which will  execute this python script resides in this on premise VM. As the script is placed on premise , i can't use any cluster activity of ADF. So Basically the pipeline should connect to the VM and trigger the script execution.I could think of an option of using Custom Activity of ADF and trigger Powershell command from there to this on premise python script. But not sure how to connect to on premise scripts.Any help on this is appreciated.

预先感谢.

此致

其他

推荐答案

Hello Ather,

Hello Ather,

我认为使脚本执行的最简单方法将是

I think the easiest method to get the script to execute would be a custom .NET activity. You'll need to use something like Batch Service to run the .NET code that will kick off your Python script somehow (maybe hosting it as an API listening in your VM).

另一种选择是将

The other option is to actually put the Integration Runtime (IR) on-premises, although without knowing the details this may not accomplish exactly what you want. 


这篇关于如何执行Python脚本位于使用ADF的vm中.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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