How to set an Azure Active Directory user or group as an Azure SQL Administrator

How to set an Azure Active Directory user or group as an Azure SQL Administrator

In this Azure SQL article, we will discuss the quick steps to add an Azure Active Directory user or group as an Azure SQL Administrator.

How to set an Azure Active Directory user or group as an Azure SQL Administrator

Before performing these steps, let’s discuss the Prerequisites needed here to perform this operation.

Prerequisites

Assuming, you are ready with all the Prerequisites, Now, follow the below steps

  1. Log in to the Azure Portal.
  2. Search for SQL servers and click on the search result SQL servers under Services.
Set an Azure Active Directory user as an Azure SQL Administrator

3. Click on the specific SQL servers from the list for the one you wish to set the Azure SQL Administrator.

how to Set an Azure Active Directory user as an Azure SQL Administrator

4. On the SQL server page, click on the Azure Active Directory link from the left navigation that is present under Settings –> Then click on the Set admin button from the right side as per the below screenshot.

How to add an Azure Active Directory user as an Azure SQL Administrator

5. Serch for the Azure Active Directory user or Group and then select that user or group by checking the checkbox –> Then click on the Select button.

How to add an Azure Active Directory user as an Azure SQL Admin

6. Finally, make sure to click on the Save button to save the changes.

How to set an Azure Active Directory user as an Azure SQL Admin

Now you will see the successful message “Set the Azure Active Directory admin for ServerName: SQL server name” as below.

How to add an Azure Active Directory group as an Azure SQL Administrator

Now navigate to the Azure SQL database and click on the Query editor (Preview) link from the left navigation.

Add an Azure Active Directory group as an Azure SQL Administrator

Now Log in with the Active Directory authentication with the administrator that we have set above.

Note: It might ask you to create the firewall rule. kindly click on that link to do so.

How to set an Azure Active Directory group as an Azure SQL Administrator

Now, you can able to see I am able to login successfully with the Azure Active Directory authentication.

Set an Azure Active Directory user or group as an Azure SQL Administrator

Set an Azure Active Directory user or group as an Azure SQL Administrator – Video Tutorial

You may also like following the below Azure SQL articles

Final Thoughts

In this article, we discussed how to set an Azure Active Directory user or group as an Azure SQL Administrator. Thanks for reading this article !!!