Export ADF ARM template issue

Anonymous
2022-06-10T14:28:32.35+00:00

Hi
I have a simple data factory with linked services using credentials from a key vault. So I've successfully created a Key Vault linked service, then for the resources needed, a linked service for storage account and SQL database making use of the key vault linked service to get the credentials from the vault, as described in the documentation elsewhere. Everything is working fine but when I export the factory as an ARM template, the file for the factory parameters ( arm_template_parameters.json ) looks like this (real names are omitted in favour of <...> values):

{  
    "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",  
    "contentVersion": "1.0.0.0",  
    "parameters": {  
        "factoryName": {  
            "value": "<right-factory-name>"  
        },  
        "AzureSqlDatabaseLS_connectionString": {  
            "value": ""  
        },  
        "AzureBlobStorageLS_properties_typeProperties_connectionString_secretName": {  
            "value": "<right-factory-connstring>"  
        },  
        "AzureKeyVaultLS_properties_typeProperties_baseUrl": {  
            "value": "https://<right-vault-name>.vault.azure.net/"  
        }  
    }  
}  

So, the connection string for the database AzureSqlDatabaseLS_connectionString is empty and I dunno why if everything is working and connecting well.

The linked service configuration for the SQL database is as depicted:

210290-screenshot-2022-06-10-at-155235.png

So, am I missing something taking into account the only pipeline in the factory using those services is working ok?

Thanks!!

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. Anonymous
    2022-06-13T13:13:45.357+00:00

    Well, for the sake of sharing knowledge and if someone has the same issue: that procedures is partially wrong.

    The point is setting the azure vault secret with the ADO.NET connection string of the database. You have to replace the placeholder in {your_password} the connection string with the password your chose for the database... manually (I didn't figure out how to do that one automatically, maybe some Microsoft wizard can).

    Then, in the SQLDatabase linked service choose Azure Key Vault instead Connection string (just the opposite than in the picture) to successfully connect the database linked service via a secret.

    In my case that fixed the issue.

    1 person found this answer helpful.

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.