Login to Azure SQL DB via Personal Access Token

Priya Jha 896 Reputation points
2023-01-09T12:33:45.493+00:00

Hi All,

Is it possible to login into Azure SQL DB via Personal Access Token

Is there any python code/ code snippet to achieve this?

Azure SQL Database
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 29,542 Reputation points Microsoft Employee Moderator
    2023-01-09T13:37:35.8+00:00

    Hi, @Priya Jha Thanks for posting your question on the Microsoft Q&A platform.
    As I understand from the question, you want to know if there is possible to login into Azure SQL DB via Personal Access Token.
    Azure AD supports token-based authentication for applications connecting to SQL Database and SQL Managed Instance.
    If you're working within Microsoft tools, then your Microsoft account (MSA) or Azure Active Directory (Azure AD) is an acceptable and well-supported approach. But, if you're working with third-party tools that don't support Microsoft or Azure AD accounts – or you don't want to provide your primary credentials to the tool – use PATs to limit your risk.
    Please refer to this document here
    277503-image.png

    Please provide more information on your use case so I can provide additional details.

    Regards
    Geetha


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.