Set the Service Startup Account for SQL Server Agent (SQL Server Configuration Manager)
On Azure SQL Database Managed Instance, most, but not all SQL Server Agent features are currently supported. See Azure SQL Database Managed Instance T-SQL differences from SQL Server for details.
The SQL Server Agent service startup account defines the Windows account that SQL Server Agent runs as, as well as its network permissions. This topic describes how to set the SQL Server Agent service account with SQL Server Configuration Manager in SQL Server 2017 by using SQL Server Management Studio.
In This Topic
Before you begin:
Before You Begin
Limitations and Restrictions
Beginning with SQL Server 2005 (9.x), SQL Server Agent no longer requires that the service startup account be a member of the Microsoft Administrators group. However, the SQL Server Agent service startup account must be a member of the SQL Serversysadmin fixed server role. The account must also be a member of the msdb database role TargetServersRole on the master server if multiserver job processing is used.
Object Explorer only displays the SQL Server Agent node if you have permission to use it.
To perform its functions, SQL Server Agent must be configured to use the credentials of an account that is a member of the sysadmin fixed server role in SQL Server. The account must have the following Windows permissions:
Log on as a service (SeServiceLogonRight)
Replace a process-level token (SeAssignPrimaryTokenPrivilege)
Bypass traverse checking (SeChangeNotifyPrivilege)
Adjust memory quotas for a process (SeIncreaseQuotaPrivilege)
For more information about the Windows permissions required for the SQL Server Agent service account, see Select an Account for the SQL Server Agent Service and Setting Up Windows Service Accounts.
Using SQL Server Management Studio
To set the Service Startup Account for SQL Server Agent
In Registered Servers, click the plus sign to expand Database Engine.
Click the plus sign to expand the Local Server Groups folder.
Right-click the server instance where you want set up the Service Startup Account, and select SQL Server Configuration Manager....
In the User Account Control dialog box, click Yes.
In SQL Server Configuration Manager, in the console pane, select SQL Server Services.
In the details pane, right-click SQL Server Agent(server_name), where server_name is the name of the SQL Server Agent instance for which you want to change the service startup account, and select Properties.
In the SQL Server Agent(server_name) Properties dialog box, in the Log On tab, select one of the following options under Log on as:
Built-in account: select this option if your jobs require resources from the local server only. For information about how to choose a Windows built-in account type, see Selecting an Account for SQL Server Agent Service.
The SQL Server Agent service does not support the Local Service account in SQL Server Management Studio.
This account: select this option if your jobs require resources across the network, including application resources; if you want to forward events to other Windows application logs; or if you want to notify operators through e-mail or pagers.
If you select this option:
In the Account Name box, enter the account that will be used to run SQL Server Agent. Alternately, click Browse to open the Select User or Group dialog box and select the account to use.
In the Password box, enter the password for the account. Re-enter the password in the Confirm password box.
In SQL Server Configuration Manager, click the Close button.