Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing properties: allow wildcards in the PATH column of the configuration file (CSV) #437

Open
marco-piazzi opened this issue Jan 28, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@marco-piazzi
Copy link

It would be great if the PATH column of the configuration file (CSV) could accept wildcards in order to make it easier to replace of multiple properties.
Let's assume we have an ADF pipeline with many web activities. Each of these activities uses an Integration Runtime that needs to be replaced in different environments.
A simplification of this scenario is represented by the following JSON snippet:

{
"name": "Contoso_MyPipeline",
  "properties": {
    "activities": [
      {
        "name": "Web_MyActivity1",
        "type": "WebActivity",
        "typeProperties": {
          "connectVia": {
            "referenceName": "my-shir-dev-01",
            "type": "IntegrationRuntimeReference"
          }
        }
      },
      {
        "name": "Web_MyActivity2",
        "type": "WebActivity",
        "typeProperties": {
          "connectVia": {
            "referenceName": "my-shir-dev-01",
            "type": "IntegrationRuntimeReference"
          }
        }
      }
    ]
  },
  "type": "Microsoft.DataFactory/factories/pipelines"
}

The generic rule to catch all web activities in all pipelines that start with "Contoso_" and replace the Integration Runtime reference should be:

type,name,path,value
pipeline,Contoso_*,activities[Web_*].typeProperties.connectVia.referenceName,"$Env:INTEGRATIONRUNTIMENAME"

The NAME column already supports wildcards. It would be great if the path column supported them too.

Thank you for the incredible effort you are putting into this awesome tool!
Marco

@NowinskiK NowinskiK added the enhancement New feature or request label Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants