Replies: 1 comment 1 reply
-
Hello @Reheban and sorry for the late answer. MSSQL sink supports using Azure managed identities and other Entra ID/AAD authentication methods. It has to be configured using the connection string. The supported methods are documented here: https://learn.microsoft.com/en-us/sql/connect/ado-net/sql/azure-active-directory-authentication?view=sql-server-ver16#setting-azure-active-directory-authentication I'm not quite sure what you mean by set the accessToken because in the case of managed identity you usually only configure the principal ID which assigned to the managed identity in Entra ID/AAD. You do not have to configure anything else. It is password- and secretless and therefore a quite secure and recommended way of authentication in Azure. The access token is requested when the MSSQL sink connects to the database. This is done by the underlying Microsoft.Data.SqlClient library and it happend completely transparend for your code and also for the MSSQL sink. You never see the token and do not have to set or assign it anywhere in your code or configuration. It is all handled by the SqlClient library. |
Beta Was this translation helpful? Give feedback.
-
We are using System Managed Identities that require the accessToken to be set. How do I access the underlying SQLConnection to set the AccessToken property?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions