layout | page_title | description |
---|---|---|
azuredevops |
AzureDevops: azuredevops_feed |
Manages Feed within Azure DevOps organization. |
Manages Feed within Azure DevOps organization.
resource "azuredevops_feed" "example" {
name = "examplefeed"
}
resource "azuredevops_project" "example" {
name = "Example Project"
visibility = "private"
version_control = "Git"
work_item_template = "Agile"
description = "Managed by Terraform"
}
resource "azuredevops_feed" "example" {
name = "examplefeed"
project_id = azuredevops_project.example.id
}
resource "azuredevops_feed" "example" {
name = "examplefeed"
features {
permanent_delete = false
}
}
The following arguments are supported:
name
- (Required) The name of the Feed.
-
project_id
- (Optional) The ID of the Project Feed is created in. If not specified, feed will be created at the organization level. -
features
- (Optional) Afeatures
blocks as documented below.
~> Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed
features
block supports the following:
permanent_delete
- (Optional) Determines if Feed should be Permanently removed, Defaults tofalse
restore
- (Optional) Determines if Feed should be Restored during creation (if possible), Defaults tofalse
The following attributes are exported:
id
- The ID of the Feed.name
- The name of the Feed.project_id
- The ID of the Project Feed is created in (if one exists).
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 10 minutes) Used when creating the Feed.read
- (Defaults to 5 minute) Used when retrieving the Feed.update
- (Defaults to 10 minutes) Used when updating the Feed.delete
- (Defaults to 10 minutes) Used when deleting the Feed.
Azure DevOps Feed can be imported using the Project ID and Feed ID or Feed ID e.g.:
terraform import azuredevops_feed.example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000
or
terraform import azuredevops_feed.example 00000000-0000-0000-0000-000000000000