Azure数据工厂V1 [英] Azure Data Factory V1

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

问题描述

是否可以使用Powershell脚本在ADF v1中触发管道?

Is it possible to trigger a pipeline in ADF v1 using Powershell script?

我发现此命令"Resume-AzureRmDataFactoryPipeline"触发了管道,但是它并没有真正启动管道.

I found this command "Resume-AzureRmDataFactoryPipeline" to trigger the pipeline, but it does not really start the pipeline..

请告知.

推荐答案

这实际上取决于您的管道的功能,但是另一种方法是使用以下powershell cmdlet将切片的状态设置为等待:

It really depends on what your pipeline does, but an alternative method is setting the status of a slice to waiting, with the following powershell cmdlet:

$StartDateTime = (Get-Date).AddDays(-7)
$ResourceGroupName = "YourRGName"
$DSName = "YourDatasetName"
$DataFactoryV1Name = "YourDFv1Name"
Set-AzureRmDataFactorySliceStatus -DataFactoryName $DataFactoryV1Name -DatasetName $DSName -ResourceGroupName $ResourceGroupName -StartDateTime $StartDateTime -Status Waiting

替换为您的值,并在登录并选择订阅后运行.这样做是将一些片设置为等待",如果它们的开始日期是过去的时间,则数据工厂将立即运行它们.

Replace with your values and run after being logged in and selecting a subscription. What this does is sets some slices to Waiting, and if their startdatetime is in the past, data factory will run them immediately.

希望这对您有帮助!

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

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