MethodsAndPractices / vsteam

PowerShell module for accessing Azure DevOps Services and Azure DevOps Server (formerly VSTS or TFS)
https://methodsandpractices.github.io/vsteam-docs/
MIT License
448 stars 157 forks source link

Q: Automate ServiceEndpoint / Environment Creation? #271

Open mmisztal1980 opened 4 years ago

mmisztal1980 commented 4 years ago

Hi,

I realize that this is probably not a part of the functionality that this module offers, however I'm looking for guidance on how this should be implemented.

Essentially, whenever I provision a k8s cluster, I'd like a service endpoint to be automatically added to my project (using kubeconfig method), I'd also like to create environments for my cluster.

How should I proceed about this? I haven't been able to find any documentation on this yet, and the az devops service-endpoint create doesn't seem to answer that (config file contents missing)

SebastianSchuetze commented 4 years ago

@mmisztal1980 have you checked if the module can support you with this already? The problem is that the API is pretty much standardized for all service connections and I think the body supports a custom property "data" for custom payload. So I don't know how it should look like in this case.