Change SQL ID connection to Azure AD

bukkybu 386 Reputation points
2023-05-23T19:49:05.7833333+00:00

I have an on prem windows desktop app with an azure sql database backend. The connection is currently being made via sql ID in an ini file on prem. I need to change the connection to authenticate against Azure AD. A windows account is ready with perms on the Azure SQL database. The app has been registered in the Azure portal. My Azure experience is very limited, so any assistance is greatly appreciated.

Azure SQL Database
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Cesar Lopez 225 Reputation points
    2023-05-23T20:20:38.2333333+00:00

    If you need a account, it is posible. But you should use a Azure Key Vault and rotate user´s passwords.

    User's image

    This examples is for a storage account, but SQL is too funcionality

    0 comments No comments

  2. Alberto Morillo 35,401 Reputation points MVP Volunteer Moderator
    2023-05-23T20:25:52.99+00:00

    Here you will find how connection strings are changed to connect using ADD that I hope may help you make the appropriate changes on the .ini file.

    To use Azure AD authentication, you must configure your Azure SQL data source as explained here.

    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.