我正在努力创建一个TumblingWindowTrigger,它指定一个调度参数,以便我可以执行数据的回填。执行下面的PowerShell命令后,在UI中,我看到一个具有正确名称的新触发器,但是,它的类型是:"触发器",并且与我的pipleine名为"appevents_daily"无关。我没有看到任何错误或警告。关于我错过了什么的任何想法?
PowerShell Commnads:
Login-AzureRmAccount
$ResourceGroupName="treasuredata"
$DataFactoryName="treasured"
$TriggerName="BackfillAppevents"
Set-AzureRmDataFactoryV2Trigger -ResourceGroupName $ResourceGroupName -DataFactoryName $DataFactoryName -Name $TriggerName -DefinitionFile "C:UsersrajeshSourcedatafactorybackfill.json"
文件 backfill.json 定义为:
{
"name": "BackfillAppevents",
"properties": {
"type": "TumblingWindowTrigger",
"typeProperties": {
"frequency": "Hour",
"interval": 24,
"startTime": "2018-04-09T19:00:00.000Z",
"endTime": "2018-05-04T23:26:00.000Z",
"delay": "00:00:00",
"maxConcurrency": 1,
"schedule": {
"minutes": [0,15,30,45]
},
"retryPolicy": {
"count": 3,
"intervalInSeconds": 120
}
},
"pipeline": {
"pipelineReference": {
"referenceName": "appevents_daily",
"type": "PipelineReference"
},
"parameters": {
"windowStart": "@trigger().outputs.windowStartTime",
"windowEnd": "@trigger().outputs.windowEndTime"
}
}
}
}
发现根本问题是过时的命令。仅供参考 - 在Powershell中安装最新版本:
Install-Module -Name AzureRM.DataFactoryV2 -Force