简体   繁体   中英

azure data factory: Linked services parameterization (making linked service dynamic)

Scenario: In a multi-tenant architecture, I have the same batch job (ETL) running for multiple clients (tenant-wise). In this case only variable is source and target. In ADF my pipes/mapping-data-flows are statc, the dynamic things are LinkedServices. Even datasets also can be static, because I am expecting same tables in sources and targets across clients.

How can I make LinkedServices dynamic?

This is how I implemented it through Scripts (shell, python). - A wrapper script will be initiated with client_code as a parameter - client's DB details and connection details will be available in a DB, get it from there - ETL job (script) will be initiated with the respective client's source n target DB details - Logging/ auditing is done at all steps

How can I achieve this through ADF?

You can parameterize your linked service and pass dynamic values at run time. To achieve your goal, you have to add a parameter to your linked service and parameterize the server name in the linked service definition.

Parameterize linked services

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM