microsoft / terraform-provider-azuredevops

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

Missing arguments in azuredevops_project_pipeline_settings #765

Open leighmo opened 1 year ago

leighmo commented 1 year ago

Community Note

Description

We need to be able to set the following arguments in the Project pipeline settings as we leverage modules in other projects that reside outside of the existing project the pipeline is executed from. We also want to disable class build/release pipelines via code and have these checked regularly to make sure they are not being changed.

Thanks

New or Affected Resource(s)

azuredevops_project_pipeline_settings

Potential Terraform Configuration

Untested

References

No

xuzhang3 commented 1 year ago

@leighmo "Limit job authorization scope to current project for release pipelines" has been support be resource azuredevops_project_pipeline_settings.enforce_job_scope

leighmo commented 1 year ago

Hi @xuzhang3,

Thanks for the reply. There are two options in the Azure DevOps Pipeline settings.

Limit job authorization scope to current project for non-release pipelines Non-Release Pipelines can run with collection scoped access tokens unless this option is enabled. With this option enabled, you can reduce the scope of access for all non-release pipelines to the current project.

Limit job authorization scope to current project for release pipelines Release pipelines can run with collection scoped access tokens unless this option is enabled. With this option enabled, you can reduce the scope of access for all release pipelines to the current project.

The current module covers off the first option "non-release pipelines" but does not address the second option "release pipelines"

ADO-Pipeline-Settings

Cheers

ashleyghooper commented 1 year ago

Yes, we've been disabling the limit for release pipelines as a manual step and would greatly appreciate being able to do this via TF.

xuzhang3 commented 1 year ago

New features will be available after upgrading to v7 API

xuzhang3 commented 1 year ago

Disable creation of classic build and classic release pipelines - This configuration cannot be updated via the API. Issue: https://github.com/microsoft/azure-devops-go-api/issues/133

citrix-pradeep commented 11 months ago

Hi @xuzhang3 , can we have terraform support for [azuredevops_project_pipeline_settings] - Support pipeline general settings for " Disable creation of classic build and classic release pipelines" image

xuzhang3 commented 11 months ago

@citrix-pradeep SDK does not support these two properties yet.