Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource: task groups #1070

Open
Breee opened this issue Jun 11, 2024 · 0 comments
Open

resource: task groups #1070

Breee opened this issue Jun 11, 2024 · 0 comments

Comments

@Breee
Copy link

Breee commented Jun 11, 2024

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>"
     }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants