microsoft / terraform-provider-azuredevops

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

Add support for managing release pipeline folders and permissions #354

Open ajhall opened 3 years ago

ajhall commented 3 years ago

Community Note

Description

I'd like to use Terraform to manage release pipeline folders. We often create an empty release folder, then assign permissions to that folder so a specific team can manage its contents.

I'd also like to be able to set permissions on those folders, similar to the existing azuredevops_build_definition_permissions resource, but applicable to release pipelines and folders.

New or Affected Resource(s)

Potential Terraform Configuration

resource "azuredevops_release_definition_folder" "folder" {
  project_id = azuredevops_project.project.id
  path       = "\\ExampleFolder"
}

resource "azuredevops_release_definition_permissions" "folder" {
  project_id  = azuredevops_project.project.id
  principal   = data.azuredevops_group.project-readers.id

  path        = azuredevops_release_definition_folder.folder

  permissions = {
    ViewReleaseDefinition        = "Allow"
    EditReleaseDefinition        = "Allow"
    DeleteReleaseDefinition      = "Allow"
    ManageReleaseApprovers       = "Allow"
    ManageReleases               = "Allow"
    ViewReleases                 = "Allow"
    CreateReleases               = "Allow"
    EditReleaseEnvironment       = "Allow"
    DeleteReleaseEnvironment     = "Allow"
    AdministerReleasePermissions = "Allow"
    DeleteReleases               = "Allow"
    ManageDeployments            = "Allow"
    ManageReleaseSettings        = "Allow"
    ManageTaskHubExtension       = "Allow"
  }
}

References

GorkaRC commented 1 year ago

Hi everyone,

Does anyone know if release permissions will be possible to manage through the terraform module, like build permissions?

Is there any news on this topic?

Thanks in advance!