Search code examples
pythonazureazure-active-directoryazure-sql-database

Connect Azure SQL Server using Service Principal


I want to connect the Azure SQL Database using Azure service principal through Python.

Please help me

I am able to connect it through ADF using service principal


Solution

  • There is a library Microsoft Azure Active Directory Authentication Library (ADAL) for Python to connect sql server.You could get it from here.

    And in the wiki doc, you could find a tutorial about connecting to Azure SQL Database.

    Also you could refer to this article, it has detailed steps to connect server.