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

Add ability to configure organization- and project-wide settings

Open joaocc opened this issue 2 years ago • 1 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

We are trying to assess the use to terraform to ensure consistency in some settings on Azure Devops. Some of these settings appear at two levels:

  • Organization
    • Security/Polices (application connection, security, user)
    • Pipelines/Settings
  • Project
    • Repositories / All Repositories (settings, policies)
    • Pipelines/Settings (retention, general, triggers)

As far as we were able to search in the provider, there doesn't seem to be any way to configure any of these.

New or Affected Resource(s)

(as new resource, but this is pure brainstorming)

  • azuredevops_organization
  • azuredevops_organization_settings_security
  • azuredevops_organization_settings_pipelines
  • azuredevops_project_settings_repositories
  • azuredevops_project_settings_pipelines

joaocc avatar Oct 07 '23 19:10 joaocc

I don't see any endpoints that allow the management of org-wide settings (such as "Protect access to repositories in YAML pipelines") in the official REST API documentation (I might be missing something): https://learn.microsoft.com/en-us/rest/api/azure/devops/?view=azure-devops-rest-7.2

tbalthazar avatar Oct 01 '24 14:10 tbalthazar

I think at least it's possible to set permissions on org level: https://jessehouwing.net/azure-devops-git-setting-default-repository-permissions

simongottschlag avatar Dec 20 '24 06:12 simongottschlag