从Azure数据工厂执行Powershell脚本 [英] Execution of powershell Script from Azure Data Factory

查看:117
本文介绍了从Azure数据工厂执行Powershell脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有要求我们被要求使用Azure数据工厂触发Power-Shell脚本(Test.ps1)的地方.

I have requirement where we have been asked to trigger the Power-Shell script (Test.ps1) using Azure data factory.

示例:Powershell脚本存储在共享路径中,并且假定Azure Datafactory可以访问它.

Example : Powershell script is stored in share path and suppose Azure Datafactory has access to it.

路径名://服务器名称/文件夹名称/Test.ps1

Path Name: //servername/Foldername/Test.ps1

Azure数据工厂应调用此脚本并执行powershell脚本.

Azure Data factory should call this script and execute the powershell script.

注意:我们不想使用.Net代码来执行.

Note: We dont want to use .Net code to execute.

谢谢

Bishwa

推荐答案

您好,您能详细说明一下要求吗?PS脚本将做什么?是否会取决于您prem n/w内的工作量?

Hi, Can you elaborate your requirement a bit and what is it that the PS script will be doing? Is it going to be dependent on the workloads within your on prem n/w?

即使没有直接的方法可以使用ADF v2提供的一流的本机活动来执行自定义代码或.ps1脚本,但是也可以使用其他方式(例如,通过网络活动并集成)来调用ps1,里面 您的Azure DF管道.

Even though there is no direct way to execute a custom code or .ps1 script using first class native activities offered by the ADF v2 but there could be other alternatives to invoke your ps1 using some other way such as web activity and integrate it inside of your Azure DF pipeline.


这篇关于从Azure数据工厂执行Powershell脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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