terraform-provider-azuredevops icon indicating copy to clipboard operation
terraform-provider-azuredevops copied to clipboard

Add ability to add a resource under an Environment - Kubernetes / Virtual Machine

Open Phil1972 opened this issue 2 years ago • 4 comments

Hi,

I am not able to find the functionality, maybe I have it wrong, but is there a way to create a resource under an environment? ie: either add a kubernetes namespace or a virtual machine.

We are presently stuck at creating a functioning environment because this is missing (or we are not able to find out how to do it).

The missing piece is supposed to under-the-hood call MS azure devops REST API: https://docs.microsoft.com/en-us/rest/api/azure/devops/distributedtask/kubernetes/add?view=azure-devops-rest-6.0

POST https://dev.azure.com/{organization}/{project}/_apis/distributedtask/environments/{environmentId}/providers/kubernetes?api-version=6.0-preview.1

We are using the pulumi devops provider which derives from the terraform provider.

Thanks for your time,

Phil1972 avatar Apr 29 '22 18:04 Phil1972

Environments - Pipelines - Issue

Here is an image for better understanding of what we would need.

Phil1972 avatar May 10 '22 15:05 Phil1972

@Phil1972 I implemented this a few months ago in https://github.com/microsoft/terraform-provider-azuredevops/pull/553. Unfortunately it's blocked by an upstream issue no one seems to care much about... which pretty much describes my entire experience with the https://github.com/microsoft/azure-devops-go-api team. @xuzhang3 any chance you could poke them again?

croemmich avatar Jun 10 '22 21:06 croemmich

@croemmich Sorry, no update 😞

xuzhang3 avatar Jun 20 '22 03:06 xuzhang3

@croemmich, @xuzhang3 any update on this PR, we really need this enhancement to be merged for our use case also. Appreciate your help.

thatham avatar Aug 30 '22 12:08 thatham