Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure devops service connection expired and cannot edit/renew

I have a Service Connection which is being used for Pipelines in Azure DevOps. It was created by another user some time ago. Recently it expired and would not allow me to change the username it was associated with. So I deleted that Service Connection and created a new one, and it took me a lot of time to modify each Pipeline where it was being used.

I have two questions.

  1. Is it possible to change the creator name of the Service Connection?

  2. If not, is there any other way to reuse an existing Service Connection after its secret expires?

Thanks in advance.

like image 847
Gayathri K Avatar asked Sep 01 '25 04:09

Gayathri K


2 Answers

I just got stuck in the same position trying to manually update the connection with a new client secret. Here's what worked for me:

  • From the DevOps Service Connection | Click Manage Service Principal
  • Then on the service principal | Certificates & Secrets
  • Create a "New Client Secret"
  • Delete the expired secret
  • Return to the DevOps Service Connection
  • Click Edit - click the verify button. It should tell you the client certificate has expired
  • Now you need to make a meaningless change and save it. I just type a character in to the optional description and save.
  • Now edit again and click verify, it will now pick up the new client secret and all is happy. Just go delete the meaningless character you typed into the description and click save.
like image 130
CamD Avatar answered Sep 02 '25 17:09

CamD


Defining service connection you can pick a name what you want. So in your case you can reuse old name to minimize your work.

enter image description here

If you ahve already define service connection you can change a name using REST API:

PUT https://dev.azure.com/{organization}/{project}/_apis/serviceendpoint/endpoints/{endpointId}?api-version=5.1-preview.2

You can also edit it from the poertal: enter image description here

and then:

enter image description here

like image 24
Krzysztof Madej Avatar answered Sep 02 '25 18:09

Krzysztof Madej