r/azuredevops • u/RaccNexus • 12d ago
Azure DevOps Server Patching Error TF246017: Is the SQL 'sysadmin' role strictly required?
I am currently setting up a fully air-gapped (offline) Azure DevOps Server on Windows Server 2025, backed by a dedicated SQL Server instance. The environment is still in the development phase.
When attempting to apply the latest security patch, the installation fails with the following error:TF246017
Looking at the logs, this happens specifically when the patch triggers the tfsconfig.exe process on the background (for example, while trying to update feature flags). The patch is being executed by an admin account that does not currently have high-level SQL privileges.
From my research and the Microsoft documentation, it appears that the account executing the patch strictly requires the SQL sysadmin server role, and that a standard db_owner role is insufficient for tfsconfig.exe to do its job.
Can anyone confirm if the sysadmin role is indeed a hard requirement for applying ADOS patches? And if so, how do you handle this in strictly regulated environments? Do you grant it temporarily just for the maintenance window?
Any insights would be greatly appreciated!
3
u/AccomplishedDemand61 11d ago
Can confirn after working with my sql engineers and a support case. Even if the account you use has all the granular permissions needed in sql preflights will still fail with the needs sa error. It's not actually testing sql permissions it's only checking if that box is checked.
3
u/LukaGOGO 11d ago
ADOS patches absolutely need the sysadmin role on the SQL instance because tfsconfig.exe executes massive schema changes across the configuration databases. A standard db_owner role will always fail with that TF246017 error during the feature flag updates. In strictly regulated environments, my approach is to temporarily grant sysadmin to the account executing the patch right at the start of the approved maintenance window. Once the server reboots and the patch is verified, I immediately revoke it. You can't bypass the requirement, so baking that temporary privilege escalation directly into your change management ticket is your best bet.
2
u/chandleya 10d ago
Massive schema changes are zero justification. I hear you that the installer requires it but that doesn’t make it any less of a bad practice.
2
u/nian2326076 11d ago
Yes, the SQL sysadmin role is typically required for executing patches on Azure DevOps Server. This is because the tfsconfig.exe process needs full permissions to make changes to the database schema and configurations during updates.
In regulated environments, many teams grant temporary sysadmin access just for the maintenance window and then revoke it afterward to maintain compliance. It's important to document this access for auditing purposes. If you're looking to explore related job opportunities in DevOps, you can use LandOffer to find relevant roles.
2
u/Additional_Camera716 7d ago
Yup, the SQL sysadmin role is compulsorily needed to execute the patch, so what you can do is you can grant it temporarily to a dedicated patching account for the maintenance window and revoke it immediately afterwards.
4
u/wesmacdonald 11d ago
Yes, make sure that the account you plan to use to configure Azure DevOps Server is a member of the SysAdmin server role in SQL Server.
See the following article
https://learn.microsoft.com/en-us/azure/devops/server/install/dual-server?view=azure-devops-server