Azure-Player / azure.datafactory.tools

Tools for deploying Data Factory (v2) in Microsoft Azure
https://azureplayer.net/adftools
MIT License
209 stars 69 forks source link

##[error]ADFT0010: Wrong path defined in config for object(path): integrationRuntime.shir-ir(properties.$.name) #327

Closed Mishco closed 1 year ago

Mishco commented 1 year ago

Describe the bug We would like to create and use self-hosted integration runtime (shir) in different environment (dev, nonprod, prod) and use that different name in configuration. However we were not able to configure in .csv change of name of resource itself. Is that possible ?

To Reproduce What we tried:

# this worked well
integrationRuntime, shir, typeProperties.linkedInfo.resourceId, "/subscriptions/<TENANT>/resourceGroups/dev/providers/Microsoft.DataFactory/factories/factory-dev/integrationRuntimes/shir-dev"

# these does not work
integrationRuntime, shir, $.name, "shir-dev"
#integrationRuntime, shir, $.name, "shir-dev"
integrationRuntime, shir, $.name.value, "shir-dev"
integrationRuntime, shir, "$.name", "shir-dev"
integrationRuntime, shir, "$.name.value", "shir-dev"
integrationRuntime, shir, "$.properties.globalParameters.name.value", "shir-dev"
#integrationRuntime, shir, "$.properties.globalParameters.name.value", "shir-dev"

Error message in most cases (in some cases it does not say anything):

##[error]ADFT0010: Wrong path defined in config for object(path): integrationRuntime.shir(properties.$.name)

Expected behaviour Is there a way to change name inside of .csv config file ?

Screenshots image

Thanks for help

NowinskiK commented 1 year ago

You can change many properties in objects except NAME with adftools and configuration files.