Skip to content

mikaelkrief/terraform-provider-azuredevops-deprec

Repository files navigation

Azure DevOps Terraform Provider

Terraform provider for Azure DevOps

This provider use the Azure DevOps Go SDK provided in this GitHub

General Requirements

  • Terraform 0.10.x
  • Go 1.11.x (to build the provider plugin)

Building The Provider

Clone repository to: $GOPATH/src/github.com/mikaelkrief/terraform-provider-azuredevops

$ mkdir -p $GOPATH/src/github.com/mikaelkrief; cd $GOPATH/src/github.com/mikaelkrief
$ git clone git@github.com:mikaelkrief/terraform-provider-azuredevops

Enter the provider directory and build the provider

$ cd $GOPATH/src/github.com/mikaelkrief/terraform-provider-azuredevops
$ sh "scripts/install.sh" <version>

Requirements

  • Have or create an Azure DevOps organization (account), see the documentation for create it for free
  • Generate a PAT (Personnal Access Token) for authentication , see the documentation

Using the provider

# Configure the Azure DevOps provider
provider "azuredevops" {
  organization = "<name of your Azure DevOps organisation"
  token        = "<Your PAT authentication>"
}

# Create a Project
resource "azuredevops_project" "project" {
  name               = "My project"
  template_type_name = "agile"
  description = "description of my project"
  source_control_type = "Git"
}

The Documentation

The complete documentaion of the provider is here