terraform-provider-azuredevops
terraform-provider-azuredevops copied to clipboard
Abiity to initialize the default repository
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
When we create a new project using the azuredevops_project resource (https://registry.terraform.io/providers/microsoft/azuredevops/latest/docs/resources/project) it creates also a repository with the same name that is Uninitialized. What I want to achieve is to be able to initialize that repository for example importing it from another repository.
New or Affected Resource(s)
- azuredevops_project
- azuredevops_git_repository ??
Potential Terraform Configuration
Potential suggestion:
resource "azuredevops_project" "example" {
name = "Example Project"
visibility = "private"
version_control = "Git"
work_item_template = "Agile"
default_repository_initialization {
init_type = "Import"
source_type = "Git"
source_url = "https://dev.azure.com/example-org/private-repository.git"
service_connection_id = azuredevops_serviceendpoint_generic_git.example-serviceendpoint.id
}
}