Azure-Player / azure.datafactory.devops

Azure DevOps Deployment Tasks for Azure Data Factory objects
MIT License
39 stars 21 forks source link

Understand linked service overrides in config file #107

Closed Oz1257 closed 1 year ago

Oz1257 commented 1 year ago

I have been trying to override a linked service parameter defaults getting this error, is this even possible?

2022-10-20T13:57:24.8754926Z ##[error]ADFT0010: Wrong path defined in config for object(path): linkedService.ls_AzureFunction(properties.functionAppUrl.defaultValue) 2022-10-20T13:57:24.9294082Z ##[section]Finishing: Publish ADF adf-kws-qa01 from JSON files Also tried 2022-10-20T13:36:28.4789277Z ##[error]ADFT0010: Wrong path defined in config for object(path): linkedService.ls_AzureFunction(properties.parameters.functionAppSecretKey.defaultValue) 2022-10-20T13:36:28.5503917Z ##[section]Finishing: Publish ADF adf-kws-qa01 from JSON files

linkedService,ls_AzureFunction,properties.parameters.functionAppUrl.defaultValue,"https://func-dna-qa01.azurewebsites.net" linkedService,ls_AzureFunction,properties.parameters.functionAppSecretKey.defaultValue,"func-dna-master-key-uat"

linkedService,ls_AzureFunction,properties.functionAppUrl.defaultValue,"https://func-dna-qa01.azurewebsites.net" linkedService,ls_AzureFunction,properties.functionAppSecretKey.defaultValue,"func-dna-master-key-uat"

Linked Service Json { "name": "ls_AzureFunction", "properties": { "parameters": { "functionAppUrl": { "type": "String", "defaultValue": "https://func-dna-dev01.azurewebsites.net" }, "funcAppSecretKey": { "type": "string", "defaultValue": "func-dna-master-key-uat" } }, "annotations": [], "type": "AzureFunction", "typeProperties": { "functionAppUrl": "@{linkedService().functionAppUrl}", "functionKey": { "type": "AzureKeyVaultSecret", "store": { "referenceName": "ls_kv_dna", "type": "LinkedServiceReference" }, "secretName": { "value": "@linkedService().funcAppSecretKey", "type": "Expression" } }, "authentication": "Anonymous" }, "connectVia": { "referenceName": "AutoResolveIntegrationRuntime", "type": "IntegrationRuntimeReference" } }, "type": "Microsoft.DataFactory/factories/linkedservices" }

NowinskiK commented 1 year ago

image