azure - 在 Azure 数据工厂中创建触发器时出现问题

标签 azure azure-data-factory

我正在创建一个指定计划参数的 TumblingWindowTrigger,以便我可以执行数据回填。执行下面的 PowerShell 命令后,在 UI 中我看到一个具有正确名称的新触发器,但是它的类型为:“触发器”,并且与名为“appevents_daily”的管道无关。我没有看到任何错误或警告。对我缺少的东西有什么想法吗?

PowerShell 命令:

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"
      }
    }
  }
}

最佳答案

发现根本问题是过时的命令行开关。仅供引用——安装最新的 Powershell:

Install-Module -Name AzureRM.DataFactoryV2 -Force

关于azure - 在 Azure 数据工厂中创建触发器时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50217422/

相关文章:

python - Azure 路径中日期为字符串的正则表达式

azure - 输出类型为类库的项目无法直接启动,VS 2022 中的 Azure Function

Azure - 通过数据工厂获取 Log Analytics 查询

azure - 授权超时: Azure Data Lake Store Configuration in Azure Data Factory

azure - 如果字符串包含文本,如何评估 true?

sql-server - Azure 数据工厂。导入到 SQL DB 时转换日期格式

Azure Bot 代码似乎已被删除

python - Azure 网站 Kudu REST API - Python 中的身份验证

azure - 将列转换为Azure数据流中另一列的JSON对象

javascript - Azure cosmos DB 仅在查询中允许最多 5 个联接