ADF Override Linked Service Key Vault Reference

Anonymous
2023-06-21T10:02:11.1533333+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": "="
        }
    }
}

Just to add to this with the deployed instance, it changes the inputs to secure string also which is a tad bit annoying as I can't verify transforms are happening correctly. The JSON for that linked resource looks like this. It knows its an AzureKeyVaultSecret but for some reason its resetting all the inputs.

{
    "name": "FooBar",
    "type": "Microsoft.DataFactory/factories/linkedservices",
    "properties": {
        "description": "",
        "annotations": [],
        "type": "Db2",
        "typeProperties": {
            "connectionString": {
                "type": "SecureString",
                "value": "**********"
            },
            "password": {
                "type": "AzureKeyVaultSecret",
                "store": {
                    "referenceName": "KeyVault",
                    "type": "LinkedServiceReference"
                },
                "secretName": "MYKEY"
            }
        },
        "connectVia": {
            "referenceName": "DB2LinkedRuntime",
            "type": "IntegrationRuntimeReference"
        }
    }
}
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-23T18:37:55.9433333+00:00

    Hello @Conan

    Did you try PowerShell to deploy the ADF and specify the Azure Key Vault reference as a parameter?

    This can help ensure that the reference is not being overwritten during the deployment process.

    Please send an email to azcommunity@microsoft.com with the below details, so that we can work closely on this matter. 

     

    Your Email Subject : Attn Satish Boddu

    Your Email Body content must include the below:

    Thread URL: Link to this thread.

    Your Azure Subscription ID: <This is must to be provided to us>

    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.