resource to "Default branch name for new repositories" and choose the branch name ("main" or other)
Hi @FernandoMiguel azuredevops_git_repository support set the default_branch
resource "azuredevops_git_repository" "repo" {
project_id = data.azuredevops_project.project.id
name = "my repo"
default_branch = "refs/heads/master"
initialization {
init_type = "Clean"
}
}
Then the docs need to be updated
this PR is about a different resource than azuredevops_git_repository
it's about this

this is in the project settings
@FernandoMigue This API is not a public API, we can not add this resource to ADO based on the current azuredevops-go-SDK
@FernandoMigue This API is not a public API, we can not add this resource to ADO based on the current azuredevops-go-SDK
I understand. Thank you.
Created a feature request with azuredevops-go-SDK
https://github.com/microsoft/azure-devops-go-api/issues/96
@xuzhang3 Even for setting the default branch of a azure_devops_git_repository, if the default_branch CAN be set, the docs are still off. They only reference default_branch as an exported attribute, not as a settable argument.
https://registry.terraform.io/providers/microsoft/azuredevops/latest/docs/resources/git_repository