microsoft / terraform-provider-azuredevops

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

Allow Advanced Security to be enabled for repositories #1057

Open vanchogeorgievski opened 4 months ago

vanchogeorgievski commented 4 months ago

Community Note

Description

It would be nice if we can enable Advanced Security via TF code. The latest ADO provider v1.1.1 does not have this as an option, and azuredevops_project_features could be a good candidate to home this option.

New or Affected Resource(s)

Potential Terraform Configuration

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.

References

ChristopherMank commented 2 months ago

This is a great idea and would love to see this as well (voted above). I would think this would be its own resource, similar to how azuredevops_git_permissions is configured. In that resource, you can set the permissions at the top level if you only specify the project_id and just on an individual repo by providing project_id and repository_id. That would be a great option for this new resource as well as there are times you'd want this enabled on all repos in a project and other instances where you only want it on select repos in a project. Thanks!