Azure Devops project feature "artifacts" can't be disabled #568
Closed
Description
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
Terraform (and Azure DevOps Provider) Version
Executing 'terraform version'
Terraform v1.1.6
Installed microsoft/azuredevops v0.2.0
Affected Resource(s)
*"azuredevops_project" "new_project"
Terraform Configuration Files
resource "azuredevops_project" "new_project" {
name = var.project_name
description = var.description
visibility = var.visibility
version_control = var.version_control
work_item_template = var.work_item_template
features = {
"boards" = "disabled"
"repositories" = "enabled"
"pipelines" = "enabled"
"testplans" = "disabled"
"artifacts" = "disabled"
}
}
Debug Output
Panic Output
Expected Behavior
artifacts feature disabled
Actual Behavior
artifacts feature is always enabled
Steps to Reproduce
terraform apply
Important Factoids
The TF plan shows clearly that the feature needs to be disabled :
+ resource "azuredevops_project" "new_project" {
+ description = "This is a PoC project "
+ features = {
+ "artifacts" = "disabled"
+ "boards" = "disabled"
+ "pipelines" = "enabled"
+ "repositories" = "enabled"
+ "testplans" = "disabled"
}
+ id = (known after apply)
+ name = "poc-project"
+ process_template_id = (known after apply)
+ version_control = "Git"
+ visibility = "private"
+ work_item_template = "Agile"
}
But no matter how many times the TF is executed the artifacts feature won't get disabled , after the first run any other runs just detect that the infra is up-to-date and no changes to implement.
Note
When disabling the feature via UI there is always a confirmation pop-up that you need to confirm to disable the feature , maybe it was added recently and the current provider is not handling it yet !
References
- #0000