How to create service principal, link to the azure sql database in the azure portal.

Athula Chandrawansha 20 Reputation points
2024-05-12T04:20:51.1966667+00:00

I want to know how to create service principal to connect to azure SQL server database.

(I tried by creating user assigned identity. But this also not succeeded.) The user assigned manage identity is configured by, *create user assigned manage identity and then assigned sql for azure services of that. *Then this USMI is assigned to both sql server and azure data factory including for owner roles and manage identity sections as well. But still coming following error.,

Error:

Cannot connect to SQL Database. Please contact SQL server team for further support. Server: 'servername came here', Database: 'db name came here', 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,

Thanks

Azure SQL Database
Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.

0 comments No comments

1 answer

Sort by: Newest
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    2 deleted comments

    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.