我在数据工厂中创建只应运行自定义活动的简单管道 . 管道的部署模板如下所示:
{
"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"
}
}
]
}
}
此外,我已经创建了所需的所有资源 - 包含池和存储帐户的批处理帐户 . 所有资源都在同一资源组和订阅中 . 我尝试使用console命令触发管道
Invoke-AzureRmDataFactoryV2Pipeline -DataFactory "DataFactory" -PipelineName "PipelineName" -ResourceGroupName "ResourceGroupName"
我收到此错误:
活动MyCustomActivity失败:无法访问用户批量帐户,请检查批量帐户setiings .
有没有人从ADF执行管道遇到过这样的错误?奇怪的是,所有资源都可以相互访问,并且位于同一资源组和订阅中 .
1 回答
请检查批量链接服务使用的存储链接服务的设置 . 确保连接字符串类型为SecureString