Last active
December 3, 2023 00:26
-
-
Save frasermclean/18d98f0b01e6cff14c5a372c3f61ef00 to your computer and use it in GitHub Desktop.
SQL command to add managed identity to Azure SQL database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE USER [your-app-or-group-name] FROM EXTERNAL PROVIDER; | |
| ALTER ROLE db_datareader ADD MEMBER [your-app-or-group-name]; | |
| ALTER ROLE db_datawriter ADD MEMBER [your-app-or-group-name]; | |
| ALTER ROLE db_ddladmin ADD MEMBER [your-app-or-group-name]; | |
| GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment