Skip to content

Instantly share code, notes, and snippets.

@goyalmohit
Created September 10, 2020 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goyalmohit/bc454c897791d6753548767232808e30 to your computer and use it in GitHub Desktop.
Save goyalmohit/bc454c897791d6753548767232808e30 to your computer and use it in GitHub Desktop.
data "azuredevops_project" "parent-project" {
project_name = "Space Game - web - Pipeline"
}
data "azuredevops_git_repositories" "parent-repo" {
project_id = data.azuredevops_project.parent-project.id
name = "Space Game - web"
}
resource "azuredevops_git_repository" "tf-forked-repo" {
parent_repository_id = data.azuredevops_git_repositories.parent-repo.repositories[0].id
project_id = azuredevops_project.tf-example.id
name = "forked-repo"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment