从 Azure SQL Vault 获取 ADF 链接服务用户名

Get ADF Linked Service Username from Azure SQL Vault

我在 Key Vault 中存储了一个连接字符串,我能够获取机密并在我的链接服务中使用它。我已将用户名传递到连接字符串中:

Integrated Security=True;Data Source=servername;Initial Catalog=databasename;UID=username

但是在 ADF 链接服务中,我仍然被提示输入用户名,似乎无法解决这个问题。

有办法解决吗?我需要填充用户名字段以测试连接并保存

MSFT documentation it is not clear to me that the username is a required property. After reading the Varigence docs on Linked Services for SQL Server 我很清楚,如果您选择使用 Windows 身份验证连接,则用户名是必需的 属性。

User Name will be used by the Linked Service form for SQL Authentication or Windows Authentication with the SQL Server Linked Service. User Name is required - except when using SQL Authentication with Azure Key Vault in place of a manually entering a Connection String.

遗憾的是,您无法使用 Azure 密钥保管库获取 Windows 身份验证用户名并在 SQL 链接服务 Azure 数据工厂中使用它。目前只能通过AKV获取密码

这可能是功能请求。我建议您在此处记录功能请求:https://feedback.azure.com/d365community

相反,您可以根据需要参数化用户名。