@Eddy Tegera Unfortunately, there isn't a directly corresponding Microsoft documentation page showcasing the exact code snippet you provided for creating a Service Link with parameters and service principal authentication using the Azure Data Factory .NET SDK.
However, the approach you've outlined is correct, and we can combine the best aspects of what you already have and the referenced resources to achieve your goal.
Here's a breakdown of your code and how it aligns with Microsoft documentation:
- Linked Service Definition with Parameters: While there isn't explicit documentation referencing parameters within the Linked Service definition object itself, the concept aligns with Dynamic content: [invalid URL removed] in Azure Data Factory. This allows you to use expressions like
@{linkedService().DbServer}
to reference parameter values dynamically. - Service Principal Authentication: The
servicePrincipalId
,servicePrincipalKey
(using SecureString), andtenant
properties withintypeProperties
map directly to service principal authentication documented here: Create Microsoft Entra users using service principals: https://learn.microsoft.com/en-us/azure/azure-sql/database/authentication-aad-service-principal-tutorial
Here's how you can leverage existing documentation and your approach:
- Linked Service Definition: Maintain the structure you have with
name
,properties
, and dynamic content references for parameters within the connection string. - Service Principal Authentication: Keep using
servicePrincipalId
,servicePrincipalKey
(SecureString), andtenant
properties for service principal details.