I have a custom Linux build agent in my Azure DevOps project. One of the builds uploads a SQL database to Azure SQL Databases through a Python script using sqlalchemy
and ODBC Driver 17 for SQL Server
.
Recently the build fails with the following error:
sqlalchemy.exc.DBAPIError: (pyodbc.Error) ('HY000', u'[HY000] [Microsoft][ODBC Driver 17 for SQL Server]SSPI Provider: No Kerberos credentials available (851968) (SQLDriverConnect)') (Background on this error at: http://sqlalche.me/e/dbapi)
This is only when the build is scheduled from Azure DevOps Pipelines. When I run the script locally on the custom build agent everything works fine.