AZURE SQL Database User

Sandeep Tadishetty 1 Reputation point
2020-10-28T21:57:18.237+00:00

Hi,

I created SQL account for an application but how do I restrict or deny the same account not to connect the database using SSMS or Azure data studio by the developers since the developers can view the user information in web.config file.

Thanks,
Sandeep

Azure SQL Database
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vaibhav Chaudhari 38,916 Reputation points Volunteer Moderator
    2020-10-29T04:06:53.233+00:00

    Instead of hardcoding SQL user name and password, store them in Azure key vault and use key vault reference in config files

    Users should not have access to see these credentials (secret values) in the key vault

    https://learn.microsoft.com/en-us/azure/azure-app-configuration/use-key-vault-references-dotnet-core?tabs=cmd%2Ccore2x
    https://learn.microsoft.com/en-us/azure/key-vault/general/tutorial-net-create-vault-azure-web-app

    Edit #1:

    You can try using Managed Identity of app to access Azure SQL DB. This way, you won't use SQL user name and password.
    This thread might help - https://stackoverflow.com/questions/56943539/limit-sql-azure-access-from-an-azure-web-app

    ----------

    Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav


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.