<p>To deploy services via Azure Devops to my kubernetes cluster, I need to create a Kubernetes Service Connection manually. I want to automate this by creating the service connection dynamically in Azure DevOps so I can delete and recreate the cluster and deployment. Is this possible? How can I do this?</p>

Frank van der Meulen
<p>you can create the service endpoint using the <a href="https://learn.microsoft.com/en-us/rest/api/azure/devops/serviceendpoint/endpoints/create?view=azure-devops-rest-5.0" rel="nofollow noreferrer">azure devops api</a>, 
check this out for api detail </p>

<p><a href="https://stackoverflow.com/questions/52335657/vsts-create-service-connection-via-api">this</a> might be related</p>
