So, a bit of a strange one and I'm hoping that someone's had this issue and found a fix (Or understands why it's happening)
So this used to work without any issue... Just started happening this week - to our knowledge
Basically, when you create a new Azure Resource Manager Service Connection within Azure DevOps you get the following error;
Failed to obtain the Json Web Token(JWT) using service principal client ID. Exception Message: Object reference not set to an instance of an object.
This only happens on our On-Prem Azure DevOps server - I can create the service connection with the same settings on our Dev.Azure.com version without any issues.
Troubleshooting
- Created multiple Service Principals
- Tried different subscriptions
- Tried giving SP Owner permissions to the subscription
- Even if you try to re-verifying an existing service connection you get the same error
- Works in Dev.Azure.com
- Been no networking changes regarding our on-prem stuff
- Still able to action releases using the existing service connections (Even though you can't verify them)
- Tried creating another secret as advised my the MS troubleshooting page
- I have a PS script to gain the bearer token using the SP that I created and that works
Obviously, I've tried googling this issue, it comes up in a couple of places but none of which have a resolution or an understanding of why it's happening...
TIA