Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.85 KB

resource_authorization.html.markdown

File metadata and controls

62 lines (43 loc) · 1.85 KB
layout page_title description
azuredevops
AzureDevops: azuredevops_resource_authorization
Manages authorization of resources within Azure DevOps organization.

azuredevops_resource_authorization

Manages authorization of resources, e.g. for access in build pipelines.

Currently supported resources: service endpoint (aka service connection, endpoint).

Example Usage

resource "azuredevops_project" "example" {
  name               = "Example Project"
  visibility         = "private"
  version_control    = "Git"
  work_item_template = "Agile"
  description        = "Managed by Terraform"
}

resource "azuredevops_serviceendpoint_bitbucket" "example" {
  project_id            = azuredevops_project.example.id
  username              = "username"
  password              = "password"
  service_endpoint_name = "example-bitbucket"
  description           = "Managed by Terraform"
}

resource "azuredevops_resource_authorization" "example" {
  project_id  = azuredevops_project.example.id
  resource_id = azuredevops_serviceendpoint_bitbucket.example.id
  authorized  = true
}

Argument Reference

The following arguments are supported:

  • authorized - (Required) Set to true to allow public access in the project.

  • project_id - (Required) The project ID or project name.

  • resource_id - (Required) The ID of the resource to authorize.


  • definition_id - (Optional) The ID of the build definition to authorize.

  • type - (Optional) The type of the resource to authorize. Possible values: endpoint, queue, variablegroup. Defaults to value: endpoint.

Attributes Reference

No attributes are exported

Relevant Links