Azure 数据工厂通过服务主体将服务链接到 Synapse 无服务器池

标签 azure azure-data-factory azure-synapse

我尝试使用服务主体连接到 Synapse 无服务器池,但在我的 Azure 数据工厂管道中出现以下错误。

Cannot connect to SQL Database: 'xxxxx-ondemand.sql.azuresynapse.net', Database: 'synapse_od', User: ''. Check the linked service configuration is correct, and make sure the SQL Database firewall allows the integration runtime to access.
Login failed for user '<token-identified principal>'., SqlErrorNumber=18456,Class=14,State=1,
Activity ID: 2516df76-0215-4f27-990d-3c4654a07704.
**This may happen if your data source only allows secured connections. If that's the case, please use a VNet integration runtime**.

但可以愉快地使用 SQL 身份验证进行连接。

服务主体被授予 Synapse 上的贡献者角色。

任何线索!!!

最佳答案

在我执行以下步骤之后。具有服务主体身份验证类型的链接服务工作正常。

CREATE USER [ad_user_name] FROM EXTERNAL PROVIDER;


EXEC sp_addrolemember db_owner, [ad_user_name];

关于Azure 数据工厂通过服务主体将服务链接到 Synapse 无服务器池,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66361340/

相关文章:

c# - Azure、ASP.NET Core 2.0、使用客户端证书通过 HttpClient 调用 Post 会导致 "The client certificate credentials were not recognized"

azure - 在 ARM 模板中有条件地设置应用程序设置值

azure - 如何在 Azure 数据工厂中的 csv 文件前面添加一行?

Azure Synapse Analytics - 高长度的列加载

sql - 如何在 AZURE DW 或 Azure synapse 中创建用户或角色特定的触发器?

azure - 如何将 Azure Functions 返回值绑定(bind)到输出?

azure - 微服务架构中的数据库位置

azure - 如何使用数据工厂将多个 csv 文件从 blob 批量复制到多个 SQL 数据库表

azure - 无法删除 Azure 数据工厂 - DeleteFactoryBlockedByIR

sql-server - 从 Azure Synapse Analytics Spark 池连接到 Azure SQL 数据库