Add ability to configure organization- and project-wide settings
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
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
I think at least it's possible to set permissions on org level: https://jessehouwing.net/azure-devops-git-setting-default-repository-permissions