简体   繁体   English

在Azure数据工厂管道上执行自定义活动

[英]Executing custom activity on Azure Data Factory Pipeline

I am creating simple pipeline in the data factory that should only run a custom activity. 我正在数据工厂中创建仅应运行自定义活动的简单管道。 The deployment template for the pipeline looks like this: 管道的部署模板如下所示:

{
      "type": "pipelines",
      "name": "MyCustomActivityPipeline",
      "dependsOn": [
        "DataFactoryName",
        "AzureBatchLinkedService"
      ],
      "apiVersion": "[variables('api-version')]",
      "properties": {
        "description": "Custom activity sample",
        "activities": [
          {
            "type": "Custom",
            "name": "MyCustomActivity",
            "linkedServiceName": {
              "referenceName": "AzureBatchLinkedService",
              "type": "LinkedServiceReference"
            },
            "typeProperties": {
              "command": "cmd /c echo hello world"
            }
          }
        ]
      }
    }

Additionally I have created all the resources needed- the batch account with pools and the storage account. 另外,我已经创建了所有需要的资源-具有池的批处理帐户和存储帐户。 All the resources are in the same resource group and subscription. 所有资源都在同一资源组和订阅中。 I try to trigger the pipeline using console command 我尝试使用控制台命令触发管道

Invoke-AzureRmDataFactoryV2Pipeline -DataFactory "DataFactory" -PipelineName "PipelineName" -ResourceGroupName "ResourceGroupName"

I am getting this error: 我收到此错误:

Activity MyCustomActivity failed: Can not access user batch account, please check batch account setiings. 活动MyCustomActivity失败:无法访问用户批处理帐户,请检查批处理帐户设置。

Has anyone ever experienced such an error from ADF execution of a pipeline? 有没有人遇到过ADF执行管道中的这种错误? The weird part is that all the resources have access to each other and are within the same resource group and subscription. 奇怪的是,所有资源都可以相互访问,并且位于同一资源组和订阅中。

Please check the settings for the storage linked service used by batch linked service. 请检查批处理链接服务使用的存储链接服务的设置。 Make sure the connection string type is SecureString 确保连接字符串类型为SecureString

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM