ADF prod对象管道参数化不工作



我已经在开发环境中创建了一个对象参数,在我的ADF实例中,如{"SuperSet"; "SuperSet/SuperSet.csv"},并调用像pipeline().parameters.DWH.SuperSet这样的对象,它工作正常,但是当使用Azure CI/CD部署在生产实例上时,它在设置时间触发时给出以下提到的错误。

Operation on target SuperSet failed: The expression 'pipeline().parameters.DWH.SuperSet' cannot be evaluated because property 'SuperSet' cannot be selected. Property selection is not supported on values of type 'String'.

我arm-templete-parameters-definition。Json文件有:

"Microsoft.DataFactory/factories/pipelines": {
"properties": {
"activities": [
{
"policy": {
"retry": "-",
"retryIntervalInSeconds": "-"
}
}
],
"parameters": {
"*": {
"defaultValue": "-::string"
}
}
}
}

必须更新arm-templete-parameters-definition。

"Microsoft.DataFactory/factories/pipelines": {
"properties": {
"activities": [
{
"policy": {
"retry": "-",
"retryIntervalInSeconds": "-"
}
}
],
"parameters": {
"*": {
"defaultValue": "-::string"
},
"DWH": {
"type": "object",
"defaultValue": "=::object"
}
}
}
}

在adf_publish分支更新之后,您将发现下面提到的before和After。

:

"Aport_Import_properties_parameters_DWH": {
"type": "string"
}

:后

"Aport_Import_properties_parameters_DWH": {
"type": "object",
"defaultValue": {
"FILENAME": "techbit.csv"
}
}

"FILENAME"techbit.csv"是我在管道中的参数中声明的对象。

最新更新