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

resource: task groups

Open Breee opened this issue 8 months ago • 0 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

A new resource to manage task groups:

https://learn.microsoft.com/en-us/rest/api/azure/devops/distributedtask/taskgroups/list?view=azure-devops-rest-7.1&tabs=HTTP

New or Affected Resource(s)

  • resource: azuredevops_pipelines_taskgroup
  • datasource: azuredevops_pipelines_taskgroup
  • datasource: azuredevops_pipelines_task (to fetch task Ids)

Potential Terraform Configuration

data  "azuredevops_pipelines_task" "mytask"{
   name = "PowerShell"  
 }

resource "azuredevops_project" "example" {
  name               = "Example Project"
  visibility         = "private"
  version_control    = "Git"
  work_item_template = "Agile"
  description        = "Managed by Terraform"
}

resource "azuredevops_project_pipeline_taskgroup" "example" {
  project_id = azuredevops_project.example.id
  task {
     displayName = "my task"
     task_id = data.azuredevops_pipelines_task.mytask.id
     inputs { 
       type = "inline" 
       script = "<my script>"
     }
  }
}

Breee avatar Jun 11 '24 10:06 Breee