microsoft / terraform-provider-azuredevops

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

set service connections security settings on project level #711

Open dano0b opened 1 year ago

dano0b commented 1 year ago

Community Note

Description

I couldn't find a way to add security settings for service connections. In particular following the description in https://learn.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml#user-permissions

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

drdamour commented 2 months ago

@dano0b this is done by omitting the serviceendpoint_id property on the https://registry.terraform.io/providers/microsoft/azuredevops/latest/docs/resources/serviceendpoint_permissions resource, then the permsissions are set at the project level.. aka https://dev.azure.com///_settings/adminservices

drdamour commented 2 months ago

@dano0b @xuzhang3 suggest this be closed

xuzhang3 commented 2 months ago

Supported by azuredevops_serviceendpoint_permissions #249