Skip to content

Commit be69b25

Browse files
authored
Merge pull request #191053 from heniot/patch-3
Add windows authentication support
2 parents 1a40f50 + 0cf649d commit be69b25

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed
26.6 KB
Loading

articles/purview/register-scan-on-premises-sql-server.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,30 +40,33 @@ This section describes how to register an on-premises SQL server instance in Azu
4040

4141
### Authentication for registration
4242

43-
There is only one way to set up authentication for SQL server on-premises:
43+
There are two ways to set up authentication for SQL server on-premises:
4444

4545
- SQL Authentication
46+
- Windows Authentication
4647

47-
#### SQL Authentication to register
48+
#### Set up SQL server authentication
4849

49-
Ensure the SQL Server deployment is configured to allow SQL Server and Windows Authentication.
50+
If SQL Authentication is applied, ensure the SQL Server deployment is configured to allow SQL Server and Windows Authentication.
5051

5152
To enable this, within SQL Server Management Studio (SSMS), navigate to "Server Properties" and change from "Windows Authentication Mode" to "SQL Server and Windows Authentication mode".
5253

5354
:::image type="content" source="media/register-scan-on-premises-sql-server/enable-sql-server-authentication.png" alt-text="The Server Properties window is open with the security page selected. Under Server authentication, S Q L Server and Windows Authentication mode is selected.":::
5455

56+
If Windows Authentication is applied, configure the SQL Server deployment to use Windows Authentication mode.
57+
5558
A change to the Server Authentication will require a restart of the SQL Server Instance and SQL Server Agent, this can be triggered within SSMS by navigating to the SQL Server instance and selecting "Restart" within the right-click options pane.
5659

5760
##### Creating a new login and user
5861

5962
If you would like to create a new login and user to be able to scan your SQL server, follow the steps below:
6063

61-
The SQL account must have access to the **master** database. This is because the `sys.databases` is in the master database. The Azure Purview scanner needs to enumerate `sys.databases` in order to find all the SQL databases on the server.
64+
The account must have access to the **master** database. This is because the `sys.databases` is in the master database. The Azure Purview scanner needs to enumerate `sys.databases` in order to find all the SQL databases on the server.
6265

6366
> [!Note]
6467
> All the steps below can be executed using the code provided [here](https://github.com/Azure/Purview-Samples/blob/master/TSQL-Code-Permissions/grant-access-to-on-prem-sql-databases.sql)
6568
66-
1. Navigate to SQL Server Management Studio (SSMS), connect to the server, navigate to security, select and hold (or right-click) on login and create New login. Make sure to select SQL authentication.
69+
1. Navigate to SQL Server Management Studio (SSMS), connect to the server, navigate to security, select and hold (or right-click) on login and create New login. If Windows Authentication is applied, select "Windows authentication". If SQL Authentication is applied, make sure to select "SQL authentication".
6770

6871
:::image type="content" source="media/register-scan-on-premises-sql-server/create-new-login-user.png" alt-text="Create new login and user.":::
6972

@@ -75,7 +78,7 @@ The SQL account must have access to the **master** database. This is because the
7578

7679
1. Select OK to save.
7780

78-
1. Navigate again to the user you created, by selecting and holding (or right-clicking) and selecting **Properties**. Enter a new password and confirm it. Select the 'Specify old password' and enter the old password. **It is required to change your password as soon as you create a new login.**
81+
1. If SQL Authentication is applied, navigate again to the user you created, by selecting and holding (or right-clicking) and selecting **Properties**. Enter a new password and confirm it. Select the 'Specify old password' and enter the old password. **It is required to change your password as soon as you create a new login.**
7982

8083
:::image type="content" source="media/register-scan-on-premises-sql-server/change-password.png" alt-text="change password.":::
8184

@@ -85,7 +88,7 @@ The SQL account must have access to the **master** database. This is because the
8588
1. Select **+ Generate/Import** and enter the **Name** and **Value** as the *password* from your SQL server login
8689
1. Select **Create** to complete
8790
1. If your key vault is not connected to Azure Purview yet, you will need to [create a new key vault connection](manage-credentials.md#create-azure-key-vaults-connections-in-your-azure-purview-account)
88-
1. Finally, [create a new credential](manage-credentials.md#create-a-new-credential) using the **username** and **password** to setup your scan
91+
1. Finally, [create a new credential](manage-credentials.md#create-a-new-credential) using the **username** and **password** to set up your scan. Make sure the right authentication method is selected when creating a new credential. If SQL Authentication is applied, select "SQL authentication" as the authentication method. If Windows Authentication is applied, then select "Windows authentication".
8992

9093
### Steps to register
9194

@@ -119,9 +122,9 @@ To create and run a new scan, do the following:
119122

120123
1. Select **New scan**
121124

122-
1. Select the credential to connect to your data source.
125+
1. Select the credential to connect to your data source. The credentials are grouped and listed under different authentication methods.
123126

124-
:::image type="content" source="media/register-scan-on-premises-sql-server/on-premises-sql-set-up-scan.png" alt-text="Set up scan":::
127+
:::image type="content" source="media/register-scan-on-premises-sql-server/on-premises-sql-set-up-scan-win-auth.png" alt-text="Set up scan":::
125128

126129
1. You can scope your scan to specific tables by choosing the appropriate items in the list.
127130

0 commit comments

Comments
 (0)