0

我正在数据工厂中创建应该只运行自定义活动的简单管道。管道的部署模板如下所示:

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

此外,我还创建了所有需要的资源——带有池的批处理帐户和存储帐户。所有资源都在同一个资源组和订阅中。我尝试使用控制台命令触发管道

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

我收到此错误:

Activity MyCustomActivity 失败:无法访问用户批处理帐户,请检查批处理帐户设置。

有没有人在 ADF 执行管道时遇到过这样的错误?奇怪的是,所有资源都可以相互访问,并且在同一个资源组和订阅中。

4

1 回答 1

0

请检查批量链接服务使用的存储链接服务的设置。确保连接字符串类型为 SecureString

于 2018-01-25T09:19:08.583 回答