I am able to connect from ORQA server to DB server with ORQA tool, using below jdbc connection string with GMSA account
jdbc:sqlserver://<dbserver>:<port>;databaseName=<DBname>;integratedSecurity=true;encryption=true;trustServerCertificate=true;Persist Security Info=false;MultiSubnetFailover=true
Username parameter: GMSA$
Using azure devops pipeline, using self hosted agent from orqa machine, using the below connection string, I am getting error as below
<parameter name="connectionString" defaultValue="jdbc:sqlserver://dbserver:port;databaseName=dbname;encryption=true;trustServerCertificate=true;Persist Security Info=false;username=DOMAIN\GMSA$"/>
ERROR: test_GMSA.task:1: Login failed for user 'DOMAIN\GMSA$'
I am able to connect from ORQA server to DB server with ORQA tool, using below jdbc connection string with GMSA account
jdbc:sqlserver://<dbserver>:<port>;databaseName=<DBname>;integratedSecurity=true;encryption=true;trustServerCertificate=true;Persist Security Info=false;MultiSubnetFailover=true
Username parameter: GMSA$
Using azure devops pipeline, using self hosted agent from orqa machine, using the below connection string, I am getting error as below
<parameter name="connectionString" defaultValue="jdbc:sqlserver://dbserver:port;databaseName=dbname;encryption=true;trustServerCertificate=true;Persist Security Info=false;username=DOMAIN\GMSA$"/>
ERROR: test_GMSA.task:1: Login failed for user 'DOMAIN\GMSA$'
Connection string should be
jdbc:sqlserver://dbserver:port;databaseName=dbname;encryption=true;trustServerCertificate=true;integratedSecurity=true;
https://learn.microsoft.com/en-us/sql/connect/jdbc/setting-the-connection-properties?view=sql-server-ver16
Then run the pipeline agent as a Windows Service configured to run under the GMSA.
username=DOMAIN\GMSA$
? You can't pass domain credentials like that; it's either SQL Authentication (with a username and password), or a trusted connection (and no credentials passed in the connection string). – Thom A Commented Jan 31 at 10:39