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

feat: Parameterized linked service for Azure SQL pipelines #46

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sharadpandey90
Copy link
Contributor

@sharadpandey90 sharadpandey90 commented Mar 6, 2025

Problem

Databases can be passed as parameters within a linked service, eliminating the need to create a separate linked service for each database. This PR enables parameterized linked services in an Azure SQL pipeline.

Solution

Parameterized the source and sink database linked services for Azure SQL Profiling and Masking Pipeline

  "Source": {
    "linkedService": {
      "LS_DATABASE": {
        "value": "@pipeline().parameters.P_SOURCE_DATABASE",
        "type": "Expression"
      }
    }
  }


  "Sink": {
    "LS_DATABASE": {
      "P_SINK_DATABASE": {
        "value": "@pipeline().parameters.P_SINK_DATABASE",
        "type": "Expression"
      }
    }
  }

Testing Done

Imported the templates and successfully executed the discovery and masking pipelines.

Discovery Pipeline -
Screenshot 2025-03-06 at 17 02 53

Screenshot 2025-03-06 at 17 04 58

Masking Pipeline -
Screenshot 2025-03-06 at 17 08 24

Screenshot 2025-03-06 at 17 08 38 Screenshot 2025-03-06 at 17 09 33

@sharadpandey90 sharadpandey90 force-pushed the dlpx/pr/sharadpandey90/6f9f4611-38bd-4e70-a47d-0c23631b9dde branch 7 times, most recently from f9ca59b to 31ad7a9 Compare March 6, 2025 11:26
@sharadpandey90 sharadpandey90 force-pushed the dlpx/pr/sharadpandey90/6f9f4611-38bd-4e70-a47d-0c23631b9dde branch 2 times, most recently from 183aca9 to 0bc4a74 Compare March 7, 2025 07:36
@sharadpandey90 sharadpandey90 force-pushed the dlpx/pr/sharadpandey90/6f9f4611-38bd-4e70-a47d-0c23631b9dde branch from 0bc4a74 to a1b6570 Compare March 7, 2025 07:38
0.0.22
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verify the version before merging.

@sharadpandey90 sharadpandey90 marked this pull request as ready for review March 7, 2025 07:41
@sharadpandey90 sharadpandey90 requested a review from a team as a code owner March 7, 2025 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant