azuredevops_servicehook_storage_queue_pipelines

Manages a Service Hook Storage Queue Pipelines.

Example Usage

resource "azuredevops_project" "example" {
  name = "example-project" 
}

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "West Europe" 
}

resource "azurerm_storage_account" "example" {
  name                     = "servicehookexamplestacc"
  resource_group_name      = azurerm_resource_group.example.name
  location                 = azurerm_resource_group.example.location
  account_tier             = "Standard"
  account_replication_type = "LRS"
}

resource "azurerm_storage_queue" "example" {
  name                  = "examplequeue"
  storage_account_name  = azurerm_storage_account.example.name
}

resource "azuredevops_servicehook_storage_queue_pipelines" "example" {
  project_id   = azuredevops_project.example.id
  account_name = azurerm_storage_account.example.name
  account_key  = azurerm_storage_account.example.primary_access_key 
  queue_name   = azurerm_storage_queue.example.name
  visi_timeout = 30
  run_state_changed_event {
    run_state_filter = "Completed"
    run_result_filter = "Succeeded"
  }
}

An empty configuration block will occur in all events triggering the associated action.

resource "azuredevops_servicehook_storage_queue_pipelines" "example" {
  project_id   = azuredevops_project.example.id
  account_name = azurerm_storage_account.example.name
  account_key  = azurerm_storage_account.example.primary_access_key 
  queue_name   = azurerm_storage_queue.example.name
  visi_timeout = 30
  run_state_changed_event {}
}

Arguments Reference

The following arguments are supported:



A run_state_changed_event block supports the following:


A stage_state_changed_event block supports the following:

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

Import

Service Hook Storage Queue Pipeliness can be imported using the resource id, e.g.

terraform import azuredevops_servicehook_storage_queue_pipelines.example 00000000-0000-0000-0000-000000000000