Share via

PowerShell with Azure CLI to Azure SQL using Azure AD Authentication ?

MS Techie 2,761 Reputation points
2021-05-07T15:03:23.11+00:00

I know that Azure SQL supports Azure AD Password authentication and Azure AD Integrated Authentication.

If i want to communicate from my PowerShell (with Azure CLI modules installed) to Azure SQL PaaS , then can i use Azure AD Authentication ? ( Basically i dont want to use SQL authentication and use only Azure AD authentication )

If not Azure AD, can i use Service Principal (created from Azure AD tenant ) to connect from PowerShell to Azure SQL

Azure SQL Database
Windows for business | Windows Server | User experience | PowerShell

1 answer

Sort by: Most helpful
  1. KalyanChanumolu-MSFT 8,361 Reputation points
    2021-05-10T11:46:48.517+00:00

    @MS Techie Thank you for reaching out.
    Yes you can use Azure AD authentication with Azure SQL Database from Powershell.

    Please check the articles here and here for detailed instructions.

    ----------

    If an answer is helpful, please "Accept answer" or "Up-Vote" which might help other community members reading this thread.

    Was this answer helpful?

    0 comments No comments

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.