问题描述
我正在尝试通过服务主体连接到 Synapse 池,但出现以下错误:
Cannot connect to sql Database: 'xxxxx.sql.azuresynapse.net',Database: 'xxx-sql',User: 'xxx'. Check the linked service configuration is correct,and make sure the sql Database firewall allows the integration runtime to access.
我已经配置了防火墙规则。有人可以帮我吗?
解决方法
根据此documentaion。
您首先需要为服务主体创建包含的数据库用户。
我重现了你的问题。那么你创建了用户吗?
在我执行以下步骤之后。具有服务主体身份验证类型的链接服务工作正常。
CREATE USER [ad_user_name] FROM EXTERNAL PROVIDER;
EXEC sp_addrolemember db_owner,[ad_user_name];