简体   繁体   English

启动Azure Datafactory(v2)触发器

[英]Start Azure Datafactory (v2) Trigger

I have a ScheduleTrigger in Azure Datafactory. 我在Azure Datafactory中有一个ScheduleTrigger。 I cannot change the runtimestate to started. 我无法将运行时状态更改为已启动。 I have tried using StartWithHttpMessageAsync. 我尝试使用StartWithHttpMessageAsync。 (and what feels like all the other start commands in the API) (以及API中所有其他启动命令的感觉)

the json for the trigger looks like this: 触发器的json看起来像这样:

{

"properties": {

    "type": "ScheduleTrigger",

    "typeProperties": {

      "recurrence": {

        "frequency": "Day",

        "startTime": "2017-12-15T12:00:00Z",

        "endTime": "2099-12-31T00:00:00Z"

      }

    },

    "pipelines": [

      {

        "pipelineReference": {

          "referenceName": "DynamicFlowMaster",

          "name": "StartMasterPipeline",

          "type": "PipelineReference"

        },

        "parameters": {}

      }

    ]

  }

}

Ok, I finally answer... 好,我终于回答了...

While the documentation explicitly says: 虽然文档明确指出:

"interval": <>, // optional, how often to fire (default to 1) “ interval”:<>,//可选,触发频率(默认为1)

The Activity log in azure portal states: 天蓝色门户中的“活动”日志指出:

'The template trigger is not valid: Required property 'interval' not found in JSON. '模板触发器无效:在JSON中找不到必需的属性'interval'。

Adding the interval = 1 allowed the Client.Trigger.Start() - function to work, it previously only returned "Bad Request". 添加时间间隔= 1允许Client.Trigger.Start()-函数正常工作,它以前仅返回“错误请求”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Azure datafactory v2 使用 For Each 执行管道 - Azure datafactory v2 Execute Pipeline with For Each 如何将Azure DataFactory(v2)作业迁移到另一个DataFactory(2) - How to Migrate Azure DataFactory(v2) Job to another DataFactory(2) 通过 Azure Datafactory V2 将简单的 Json 导入 Sql 表 - Import Simple Json into Sql table via Azure Datafactory V2 具有集成运行时的Azure DataFactory v2链接服务 - Azure DataFactory v2 Linked Service with Integration Runtime 如何通过rest api触发Azure Datafactory-v2? - How to trigger Azure Datafactory-v2 via rest api? 以编程方式访问 Azure 数据工厂 V2:未找到资源组下的资源 Microsoft.DataFactory/dataFactories/ - Access Azure Data Factory V2 programmatically: The Resource Microsoft.DataFactory/dataFactories/ under resource group was not found Azure Datafactory V2 - IfCondition 活动不能包含另一个 IfCondition 活动 - Azure Datafactory V2 - IfCondition activity cannot include another IfCondition activity 将数据从 AWS RDS 拉到 DataFactory (Azure mysql) 时出现数据问题的数据工厂 V2 错误代码 2200 - Data Factory V2 Error Code 2200 on Data issue while pulling data from AWS RDS to DataFactory (Azure mysql) Azure Datafactory 管道在计划的触发器内失败 - Azure Datafactory Pipeline Failed inside a scheduled trigger 如果管道失败,如何停止触发器 Azure Datafactory - How to stop trigger if pipeline fails Azure Datafactory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM