Solved: Reason: The response was received at http://somsite/oauth2/callback/saml instead of https://somsite/oauth2/callback/saml
To solve this issue you need to add :
X-Forwarded-Proto: https
in your load balancer configuration.

Solved: Reason: The response was received at http://somsite/oauth2/callback/saml instead of https://somsite/oauth2/callback/saml
To solve this issue you need to add :
X-Forwarded-Proto: https
in your load balancer configuration.
Solution:
Although if you search the internet or official documentation you will not find anything about this.
The solution is pretty simple, you need to download the Latest JDK and install it on your build server/Azure Build Agent server
then go to Collection Settings ->Agent Pools-> Select your agent and add User CAPABILITIES as shown in the picture below:
Solution:
In order to run with service account you need below permissions:
• Logon as a service via GPO
• Local Admin permission on server
Also make sure you have permissions for the service account on the Database in order to make it work properly, if you were to use Integrated security.
Posted Also on StackOverFlow