Skip to content

Commit

Permalink
Merge pull request #32343 from MikeRayMSFT/241107-arc-security
Browse files Browse the repository at this point in the history
Clarify sysadmin fixed server role requirement
  • Loading branch information
prmerger-automator[bot] authored Nov 8, 2024
2 parents c7f096d + b631127 commit c89e939
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
19 changes: 19 additions & 0 deletions docs/sql-server/azure-arc/configure-least-privilege.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,25 @@ The configuration with least privilege is not currently supported on Linux.

Other requirements, as listed in [Prerequisites - SQL Server enabled by Azure Arc](prerequisites.md) still apply.

#### SQL Server service account

By default, the SQL Server service account is a member of the `sysadmin` fixed server role.

As listed in prerequisites, the SQL Server service account must be a member of the `sysadmin` fixed server role on each SQL Server instance. The Azure extension for SQL Server has a process called `Deployer.exe` that temporarily runs as `NT AUTHORITY\SYSTEM` when:

- Features are enabled or disabled
- SQL Server instances are added or removed

`Deployer.exe` impersonates the SQL Server service account to connect to SQL Server and add or remove permissions in server and database roles depending on which features are enabled or disabled to ensure that the Azure extension for SQL Server uses the least privileges required. To modify these permissions, the SQL Server service account must be a member of the `sysadmin` server role.

If you want to manage this process with more control, such that the SQL Server service account is not a member of the sysadmin server role all the time, follow these steps:

1. Temporarily add the SQL Server service account to the sysadmin server role.
1. Allow `Deployer.exe` to run at least once so that the permissions are set.
1. Remove the SQL Server service account from the sysadmin role.

Repeat this procedure anytime features are enabled or disabled or SQL Server instances are added to allow `Deployer.exe` to grant the least privileges required.

### Tools

To complete the steps in this article, you need the following tools:
Expand Down
4 changes: 3 additions & 1 deletion docs/sql-server/azure-arc/prerequisites.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ Run that query on any instance that you enable.

### Service account permissions

The SQL Server service account must be a member of the sysadmin fixed server role on each SQL Server instance.
The SQL Server service account must be a member of the `sysadmin` fixed server role on each SQL Server instance. By default, the SQL Server service account is a member of the `sysadmin` fixed server role.

For more information about this requirement, review [SQL Server service account](configure-least-privilege.md#sql-server-service-account).

### Set proxy exclusions

Expand Down

0 comments on commit c89e939

Please sign in to comment.