ADF Override Linked Service Key Vault Reference

Anonymous
2023-06-21T10:00:18.6866667+00:00

I have a linked service and I am trying to change the Azure Key Vault Reference (this is the view of authoring instance)

User's image

I am using git integration and in my authoring instance I have set it up using a key vault reference however, when I deploy this it changes it to using password (see below).

User's image

I have added the arm-template-parameters-definition.json file so it allows me to override certain values but for some reason its not keeping the key vault reference.

"Microsoft.DataFactory/factories/linkedServices": {
"*": {
    "properties": {
        "typeProperties": {
            "baseUrl": "=",
            "serviceEndpoint": "=",
            "credential": {
                "referenceName": "="
            },
            "password": {
                "type": "AzureKeyVaultSecret",
                "store": {
                    "referenceName": "=",
                    "type": "LinkedServiceReference"
                }
            }
        },
        "connectVia": {
            "referenceName": "="
        }
    }
}


This is a duplicate question, I can't delete as I don't get the option but when I posted this I got a 404 response hence the duplicate question as I tried again :)

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. QuantumCache 20,676 Reputation points Moderator
    2023-06-22T03:57:54.3733333+00:00

    Hello @Conan Thanks for reaching out on this forum,

    Did you try using a different approach to store the secrets used by your linked service.
    For example, you could use Azure Key Vault references in the linked service definition directly instead of using Git integration.

    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.