Reputation: 560
In the Azure Devops GUI inside the project, I see 3 Devops Service connections: SC1 (ARM), SC2 (ARM) and SC3 (Nuget). If I try to delete SC1 (ARM), it immediately takes me back to the Service Connection screen and it is still there.
Another post suggested using the CLI to delete it and setting deep to false: https://learn.microsoft.com/en-us/cli/azure/devops/service-endpoint?view=azure-cli-latest#az-devops-service-endpoint-delete
But, in this instance the CLI doesn't even list SC1 (ARM) - it only shows SC2 (ARM) and SC3 (Nuget) when doing a "list" on it.
Upvotes: 0
Views: 1205
Reputation: 560
I have fixed this as follows:
resourceId=
followed by a GUID; make a note of this GUID.az devops service-endpoint delete --organization "My-Org" --project "My-Project" --id "GUID"
(substituting the correct values including the GUID from above).
Upvotes: 3