[英]Executing custom activity on Azure Data Factory Pipeline
我正在数据工厂中创建仅应运行自定义活动的简单管道。 管道的部署模板如下所示:
{
"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"
我收到此错误:
活动MyCustomActivity失败:无法访问用户批处理帐户,请检查批处理帐户设置。
有没有人遇到过ADF执行管道中的这种错误? 奇怪的是,所有资源都可以相互访问,并且位于同一资源组和订阅中。
请检查批处理链接服务使用的存储链接服务的设置。 确保连接字符串类型为SecureString
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.