Accessing Azure SQL database via Python via AD integrated authentication

Priya Jha 896 Reputation points
2022-11-23T10:55:20.683+00:00

Hi All,

Is it possible to access Azure SQL DB via python through AD integrated authentication? As every where I am seeing either SQL Auth or SP Auth, no where is there any details w.r.t AD integrated Auth

Azure SQL Database
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,514 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 29,542 Reputation points Microsoft Employee Moderator
    2022-11-23T21:43:13.03+00:00

    Hi, @Priya Jha Thanks for the question and using the Microsoft Q&A platform
    If I understand correctly you want to know if Azure SQL DB can be accessed via python through AD-integrated authentication.
    Python connectivity uses pyodbc, which uses the ODBC driver.
    AD Integrated auth is supported for Windows and only recent versions of Linux/macOS you can check this documentation here
    263613-image.png

    This thread from the SO forum is also helpful for reference.

    Hope this will help. Please let us know if any further queries.

    Regards
    Geetha

    Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer.


Your answer

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