我正在创建一个TumblingWindowTrigger,它指定一个schedule参数,以便我可以执行数据的回填。在执行下面的PowerShell命令后,在UI中我看到一个具有正确名称的新触发器,但是,它的类型为:“Trigger”并且与我的名为'appevents_daily'的pipleine无关。我没有看到任何错误或警告。对我缺少什么的想法?
PowerShell Commnads:
Login-AzureRmAccount
$ResourceGroupName="treasuredata"
$DataFactoryName="treasured"
$TriggerName="BackfillAppevents"
Set-AzureRmDataFactoryV2Trigger -ResourceGroupName $ResourceGroupName -DataFactoryName $DataFactoryName -Name $TriggerName -DefinitionFile "C:\Users\rajesh\Source\datafactory\backfill.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"
}
}
}
}
答案 0 :(得分:0)
发现root问题是一个过时的命令行开关。仅供参考 - 安装最新的Powershell:
Install-Module -Name AzureRM.DataFactoryV2 -Force