azure.datafactory.tools icon indicating copy to clipboard operation
azure.datafactory.tools copied to clipboard

Wildcard in name not working in json config file

Open Viguro79 opened this issue 3 years ago • 0 comments

Describe the bug When using a json config file, the module cannot resolve wildcards in name as it does with csv config file since v0.19 :

Write-Error: /agent/_work/1/s/azure.datafactory.tools/private/Update-PropertiesFromFile.ps1:34
Line |
  34 |          $config = Read-JsonConfigFile -Path $configFileName -adf $adf
     |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | ADFT0017: Object [ls_*] could not be found.

To Reproduce Use a json config file with a wildcard in the name of the object.

Expected behaviour The module should be able to manage wilcards in name as it does with the csv equivalent : ✅ csv file

linkedService,ls_*,connectVia.referenceName,"ir-prd-shared"

❌json file

{
  "ls_*": [
    {
      "name": "$.properties.connectVia.referenceName",
      "value": "ir-prd-shared",
      "action": "update"
    }
  ]
}

Version of PowerShell module of:

  • v0.97

Viguro79 avatar Sep 15 '22 09:09 Viguro79