Azure Data Factory - Parameterize Azure Key Vault Secret Name

Chris Crichton-RA 1 Reputation point
2022-10-16T02:03:00.743+00:00

Hello,

I am currently using sperate linked services for each API Endpoint.

This means I have multiple linked services with the exact same settings, except for the 'Secret Name' in the Azure Key Vault for the Authorization Value

This means every time the company adds a new store/warehouse I have to set up separate linked service. The goal is to put '@pipeline' or a '@foreachlistitem'.

It looks like this currenlty isnt usable as the 'Paramaters' drop down has nothing available.

250760-image.png

Any thoughts?

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
{count} votes

1 answer

Sort by: Most helpful
  1. AnnuKumari-MSFT 34,566 Reputation points Microsoft Employee Moderator
    2022-10-17T11:44:57.637+00:00

    Hi @Chris Crichton-RA ,
    Welcome to Microsoft Q&A platform and thanks for posting your question here.
    As I understand your question here, you are trying to parameterize the Key vault secret name in linked service. However, you are not getting the underlying parameters to select while doing so. Kindly let me know in case my understanding has some gap.

    Scope of the Parameters in linked service is within the linked service itself , which means you need to create the parameter inside the linked service and point the same in the Secret name of the key vault.

    251056-parameterizels.gif

    Once the linked service is parameterized, you need to create parameter in the dataset pointing to the parameterized linked service:

    251074-parameterizeds.gif

    In order to pass the secretName via Pipeline , you need to create pipeline parameter:

    251075-parameterizepipeline.gif

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you.
      Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.