microsoft / terraform-provider-azuredevops

Terraform Azure DevOps provider
https://www.terraform.io/docs/providers/azuredevops/
MIT License
380 stars 272 forks source link

Tag azure devops project #868

Open gregbaleyy opened 1 year ago

gregbaleyy commented 1 year ago

I would like to tag my azure devops project using terraform but I can't see tags as a parameter of azuredevops_project resource image

Is there another way to do that?

xuzhang3 commented 1 year ago

Original project does not support tags. Is this feature enabled by some extension?

gregbaleyy commented 1 year ago

There is no extension that seems link to it in my organization. To me it is default behavior. You can add tags by clicking on "Edit project information" on Overwiew/Summary page. It is visible in MS documentation: https://learn.microsoft.com/en-us/azure/devops/organizations/projects/project-vision-status?view=azure-devops#update-the-page

gregbaleyy commented 1 year ago

We can also see tags using API image

I managed to create one using API: https://learn.microsoft.com/en-us/rest/api/azure/devops/core/projects/set-project-properties?tabs=HTTP

Example of body (create a tag "test"):

[
    {
        "op": "add",
        "path": "/Microsoft.TeamFoundation.Project.Tag.test",
        "value": "true"
    }
]