How to Create Azure AD Users (Contained Accounts) on Azure SQL Database For Passwordless Database Access #6965
-
|
After several attempts, I got this procedure to work: https://sqlitybi.com/how-to-create-azure-ad-users-on-azure-sql-database/ I need to translate this manual procedure to bicep so I can put it in a Github CI/CD action because it is part of the Microsoft Best Practices for SQL database access.
Siegfried |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
This should cover the first part, however I am not sure we have a way for the second part natively in bicep. https://docs.microsoft.com/en-us/azure/templates/microsoft.sql/servers/administrators?tabs=bicep e.g. All capabilities are listed under the api page: E.g. the local users which uses t-sql, you can do an alternate way. Azure data studio will get you into view the settings. I believe if you add an Azure AD group as the Admin, it could resolve your issue without creating local users, however you may need to still create them with different permissions than Admin. |
Beta Was this translation helpful? Give feedback.
This should cover the first part, however I am not sure we have a way for the second part natively in bicep.
https://docs.microsoft.com/en-us/azure/templates/microsoft.sql/servers/administrators?tabs=bicep
e.g.
https://github.com/brwilkinson/AzureDeploymentFramework/blob/main/ADF/bicep/AZSQL-SQL.bicep#L40
All capabilities are listed under the api page:
https://docs.microsoft.com/en-us/azure/templates/microsoft.sql/allversions
E.g. the local users which uses t-sql, you can do an alternate way.
Azure data studio will get you into view the settings.
I believe if you add an Azure AD group as the Admin, it could resolve your issue without creating local users, however you may need to still cre…