0
votes

I am trying to create a service connection from Azure Devops on premise to my Azure connection. But I get this error:

Failed to obtain the Json Web Token(JWT) using service principal client ID.
Exception Message: An error occurred while sending the request.

The user is owner in the subscription.

1
When you get this error?Bartosz Pelikan

1 Answers

0
votes

Problem connecting Azure DevOps on-site with Azure

According to the error, it seems that the Service principal key has expired.

You could try to run below script on the Azure DevOps OnPrem machine and can verify if able to generate the access token:

GetAccessToken.ps1

And try to create a new service principal and service principal key to create the new service connection.

BTW, you could check if it works with Azure DevOps service when using the same service connection configuration.