azure ADF产品对象管道参数化不工作

mspsb9vt  于 2022-12-14  发布在  其他
关注(0)|答案(1)|浏览(149)

我已经在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"
        }
      }
    }
  }
ymzxtsji

ymzxtsji1#

必须更新arm-templete-parameters-definition.json,并且它工作了。

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

adf_publish分支更新后你会发现前面和后面提到的。
之前:

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

之后:

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

**“文件名”:“techbit.csv”**是我在pipeline的参数中声明的对象。

相关问题